maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Turner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MINVOKER-243) invoker:install doesn't copy transitive dependencies anymore (as of 3.1.0)
Date Sun, 11 Nov 2018 00:13:00 GMT

    [ https://issues.apache.org/jira/browse/MINVOKER-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682679#comment-16682679
] 

Bryan Turner commented on MINVOKER-243:
---------------------------------------

This just caused some CI failures for me. We've got branch builds for our Maven plugins, and
artifacts from different branches can be incompatible in various ways depending on the in-flight
changes. Since the artifacts from different branches aren't compatible, transitive _in-reactor_
dependencies not being copied can result in mismatches between any current-build artifacts
that _do_ get copied and other _in-reactor_ artifacts from previous builds that aren't overwritten.
Under 3.0.1, that's not an issue as all _in-reactor_ artifacts are copied, whether they're
explicit dependencies or transitive.

{{install}} output from 3.0.1:
{noformat}
[INFO] --- maven-invoker-plugin:3.0.1:install (integration-test) @ bitbucket-maven-plugin
---
[INFO] Installing /Users/bturner/Development/atlassian/amps/pom.xml to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-parent/8.0.0-SNAPSHOT/atlassian-amps-parent-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-api/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-api/8.0.0-SNAPSHOT/plugin-module-codegen-api-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-api/target/plugin-module-codegen-api-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-api/8.0.0-SNAPSHOT/plugin-module-codegen-api-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-api/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-api/8.0.0-SNAPSHOT/plugin-module-codegen-api-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/test-codegen-jar-classes/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/test-codegen-jar-classes/8.0.0-SNAPSHOT/test-codegen-jar-classes-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/test-codegen-jar-classes/target/test-codegen-jar-classes-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/test-codegen-jar-classes/8.0.0-SNAPSHOT/test-codegen-jar-classes-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/test-codegen-jar-classes/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/test-codegen-jar-classes/8.0.0-SNAPSHOT/test-codegen-jar-classes-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-engine/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-engine/8.0.0-SNAPSHOT/plugin-module-codegen-engine-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-engine/target/plugin-module-codegen-engine-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-engine/8.0.0-SNAPSHOT/plugin-module-codegen-engine-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-engine/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-engine/8.0.0-SNAPSHOT/plugin-module-codegen-engine-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-maven-client/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-maven-client/8.0.0-SNAPSHOT/plugin-module-codegen-maven-client-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-maven-client/target/plugin-module-codegen-maven-client-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-maven-client/8.0.0-SNAPSHOT/plugin-module-codegen-maven-client-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/plugin-module-codegen-maven-client/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/plugin-module-codegen-maven-client/8.0.0-SNAPSHOT/plugin-module-codegen-maven-client-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/standalone/pom.xml to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/standalone/8.0.0-SNAPSHOT/standalone-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-product-archetypes/8.0.0-SNAPSHOT/atlassian-amps-product-archetypes-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/refapp-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/refapp-plugin-archetype/8.0.0-SNAPSHOT/refapp-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/refapp-plugin-archetype/target/refapp-plugin-archetype-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/refapp-plugin-archetype/8.0.0-SNAPSHOT/refapp-plugin-archetype-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/refapp-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/refapp-plugin-archetype/8.0.0-SNAPSHOT/refapp-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/target/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/dependency-reduced-pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/target/amps-maven-plugin-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/dependency-reduced-pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/target/amps-maven-plugin-8.0.0-SNAPSHOT-integration-tests.zip
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT-integration-tests.zip
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/pom.xml to
/Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-product-plugins/8.0.0-SNAPSHOT/atlassian-amps-product-plugins-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/bitbucket-maven-plugin/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/bitbucket-maven-plugin/8.0.0-SNAPSHOT/bitbucket-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/bitbucket-maven-plugin/target/bitbucket-maven-plugin-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/bitbucket-maven-plugin/8.0.0-SNAPSHOT/bitbucket-maven-plugin-8.0.0-SNAPSHOT.jar
{noformat}
{{install}} output from 3.1.0 (all dependencies/scopes are unchanged):
{noformat}
[INFO] --- maven-invoker-plugin:3.1.0:install (integration-test) @ bitbucket-maven-plugin
---
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/target/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/bitbucket-plugin-archetype/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/archetypes/bitbucket-plugin-archetype/8.0.0-SNAPSHOT/bitbucket-plugin-archetype-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-archetypes/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-product-archetypes/8.0.0-SNAPSHOT/atlassian-amps-product-archetypes-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/pom.xml to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-parent/8.0.0-SNAPSHOT/atlassian-amps-parent-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/dependency-reduced-pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/target/amps-maven-plugin-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.jar
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/dependency-reduced-pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-maven-plugin/target/amps-maven-plugin-8.0.0-SNAPSHOT-integration-tests.zip
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/amps-maven-plugin/8.0.0-SNAPSHOT/amps-maven-plugin-8.0.0-SNAPSHOT-integration-tests.zip
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/pom.xml to
/Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/amps/atlassian-amps-product-plugins/8.0.0-SNAPSHOT/atlassian-amps-product-plugins-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/bitbucket-maven-plugin/pom.xml
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/bitbucket-maven-plugin/8.0.0-SNAPSHOT/bitbucket-maven-plugin-8.0.0-SNAPSHOT.pom
[INFO] Installing /Users/bturner/Development/atlassian/amps/amps-product-plugins/bitbucket-maven-plugin/target/bitbucket-maven-plugin-8.0.0-SNAPSHOT.jar
to /Users/bturner/Development/atlassian/amps/invoker-repo/com/atlassian/maven/plugins/bitbucket-maven-plugin/8.0.0-SNAPSHOT/bitbucket-maven-plugin-8.0.0-SNAPSHOT.jar
{noformat}
Notice that 3.1.0 is copying significantly fewer artifacts. The {{codegen}} modules are _in-reactor_,
and are dependencies of {{amps-maven-plugin}}, which is a direct dependency of {{bitbucket-maven-plugin}},
but they are not direct dependencies of {{bitbucket-maven-plugin}} (which itself _does not
use their code_; instead, it triggers {{amps-maven-plugin}} that does).

> invoker:install doesn't copy transitive dependencies anymore (as of 3.1.0)
> --------------------------------------------------------------------------
>
>                 Key: MINVOKER-243
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-243
>             Project: Maven Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Christopher Tubbs
>            Priority: Blocker
>
> Something seems to have broken between 3.0.1 and 3.1.0, as the install goal no longer
copies transitive dependencies to the localRepositoryPath as it did in version 3.0.1.
> This is very problematic, because if the artifacts are not in the localRepositoryPath,
the invoked project will try to download them from a remote repository, which isn't possible
for SNAPSHOT versions (such as those in a sibling module in a multi-module project). This
can make it difficult to even build a multi-module project, unless the invoked task is skipped
and the sibling module can be published to a remote snapshot repository temporarily, and then
the build re-executed normally. (Saw this happen in Apache Accumulo after upgrading to apache-21.pom)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message