Skip to content

Commit 012081b

Browse files
authored
Build failure on entrypoint schema validation (#1100)
Signed-off-by: tvallin <thibault.vallin@oracle.com>
1 parent a756770 commit 012081b

File tree

1 file changed

+2
-2
lines changed
  • maven-plugins/helidon-archetype-maven-plugin/src/main/java/io/helidon/build/maven/archetype

1 file changed

+2
-2
lines changed

maven-plugins/helidon-archetype-maven-plugin/src/main/java/io/helidon/build/maven/archetype/JarMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2020, 2025 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -242,14 +242,14 @@ private void processEntryPoint(Path outputDir) throws MojoExecutionException, IO
242242
throw new MojoExecutionException("Cannot generate custom entry-point, main.xml already exists");
243243
}
244244
Converter.convert(entrypoint, main);
245-
validateSchema(outputDir, "main.xml").ifPresent(getLog()::error);
246245
}
247246
}
248247

249248
private void validateEntryPoint(Path outputDir) throws MojoExecutionException {
250249
System.setProperty(MAVEN_URL_REPO_PROPERTY, session.getLocalRepository().getBasedir());
251250
Path script = VirtualFileSystem.create(outputDir).getPath("/").resolve("main.xml");
252251
List<String> errors = Validator.validateArchetype(script);
252+
validateSchema(outputDir, "main.xml").ifPresent(errors::add);
253253
if (!errors.isEmpty()) {
254254
errors.forEach(getLog()::error);
255255
throw new MojoExecutionException("Validation failed");

0 commit comments

Comments
 (0)