From f9081bf7929c9c900698dece9dbf933535c05eaa Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Wed, 23 Sep 2020 10:43:21 +0200 Subject: [PATCH] build-tree mojo should take the POM artifact as the root instead of the JAR (which may not always be resolvable) --- .../src/main/java/io/quarkus/maven/AbstractTreeMojo.java | 3 ++- .../maven-plugin/src/test/resources/test-app-1.jar.build-tree | 2 +- .../src/test/resources/test-app-1.jar.dev-mode-tree | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/AbstractTreeMojo.java b/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/AbstractTreeMojo.java index 5d63b82d19e0a..5971390b59e4f 100644 --- a/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/AbstractTreeMojo.java +++ b/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/AbstractTreeMojo.java @@ -20,7 +20,8 @@ public class AbstractTreeMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { - final AppArtifact appArtifact = new AppArtifact(project.getGroupId(), project.getArtifactId(), project.getVersion()); + final AppArtifact appArtifact = new AppArtifact(project.getGroupId(), project.getArtifactId(), null, "pom", + project.getVersion()); final BootstrapAppModelResolver modelResolver; try { modelResolver = new BootstrapAppModelResolver(resolver()); diff --git a/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.build-tree b/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.build-tree index d200674abf166..4d106eb51fa75 100644 --- a/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.build-tree +++ b/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.build-tree @@ -1,4 +1,4 @@ -[info] io.quarkus.bootstrap.test:test-app:jar:1 +[info] io.quarkus.bootstrap.test:test-app:pom:1 [info] ├─ io.quarkus.bootstrap.test:artifact-with-classifier:jar:classifier:1 (compile) [info] ├─ io.quarkus.bootstrap.test:test-ext2-deployment:jar:1 (compile) [info] │ ├─ io.quarkus.bootstrap.test:test-ext2:jar:1 (compile) diff --git a/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.dev-mode-tree b/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.dev-mode-tree index 4028beaf21278..f564bf06bd1bd 100644 --- a/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.dev-mode-tree +++ b/independent-projects/bootstrap/maven-plugin/src/test/resources/test-app-1.jar.dev-mode-tree @@ -1,4 +1,4 @@ -[info] io.quarkus.bootstrap.test:test-app:jar:1 +[info] io.quarkus.bootstrap.test:test-app:pom:1 [info] ├─ io.quarkus.bootstrap.test:artifact-with-classifier:jar:classifier:1 (compile) [info] ├─ io.quarkus.bootstrap.test:test-ext2-deployment:jar:1 (compile) [info] │ ├─ io.quarkus.bootstrap.test:test-ext2:jar:1 (compile)