maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MDEP-573) "purge-local-repository -Dinclude" does not work as described
Date Sat, 01 Jul 2017 10:44:00 GMT

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

Hudson commented on MDEP-573:
-----------------------------

SUCCESS: Integrated in Jenkins build maven-plugins #9015 (See [https://builds.apache.org/job/maven-plugins/9015/])
[MDEP-573] "purge-local-repository -Dinclude" does not work as described

Due to requiresProject = false, we need to loop over the projects in the reactor ourselves
if the mojo was launched from the CLI. This requires several changes:
 - Dependency artifacts do not exist anymore so we work on dependencies and resolve them if
necessary.
 - Dependencies on projects in the reactor are ignored (just like in the case of a single
project, the project itself is not purged).
 - Artifacts already purged do not need to be purged again: if they were re-resolved then
no need to purge and re-resolve them a second time; if they were not re-resolved then keep
them deleted.
 - Updating to maven-artifact-transfer 0.9.2-SNAPSHOT to make added ITs work on Maven 3.0.x.
(gboue: [http://svn.apache.org/viewvc/?view=rev&rev=1800481])
* (edit) maven-dependency-plugin/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-bad-dep
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-bad-dep/invoker.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-bad-dep/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-bad-dep/verify.groovy
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-include
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-include/invoker.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-include/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-include/test.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-include/verify.groovy
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/child1
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/child1/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/child2
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/child2/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/setup.bsh
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/test.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module-execution/verify.bsh
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/child1
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/child1/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/child2
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/child2/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/invoker.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/pom.xml
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/setup.bsh
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/test.properties
* (add) maven-dependency-plugin/src/it/projects/purge-local-repository-multi-module/verify.bsh
* (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/PurgeLocalRepositoryMojo.java
* (edit) maven-dependency-plugin/src/test/java/org/apache/maven/plugins/dependency/TestSkip.java
* (add) maven-dependency-plugin/src/test/resources/unit/skip-test/plugin-purge-local-repository-config.xml


> "purge-local-repository -Dinclude" does not work as described
> -------------------------------------------------------------
>
>                 Key: MDEP-573
>                 URL: https://issues.apache.org/jira/browse/MDEP-573
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: purge-local-repository
>    Affects Versions: 3.0.0, 3.0.1
>         Environment: Win 7, 64 Bit, JDK 8u92, MVN 3.5.0, MDEP 3.0.1
>            Reporter: Markus Karg
>
> When I run _mvn generate-sources_ on a POM which binds the goal _purge-local-repository_
to that phase, then MDEP correctly purges and re-resolves the all dependencies of all submodules.
> When I instead run _mvn dependency:purge-local-repository_ then the reactor *skips* all
submodules.
> This in rather annoying and surprising, because nowhere in the public description of
MDEP is told that invoking _dependency:purge-local-repository_ at the command line as the
sole goal will effectively *skip submodules* of the POM.
> If this is not intended, this bug should get fixed.
> If this is intended, then the documentation of this goal should clearly tell that.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message