[
http://jira.codehaus.org/browse/MCLEAN-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119471
]
Benjamin Bentmann commented on MCLEAN-20:
-----------------------------------------
bq. Aggregator poms do not install anything into "target" and should not take
part in the "clean" workflow.
This statement does not hold for all use-cases. A project with packaging POM
may fairly well produce output in its "target" directory. This can naturally
happen if one has site sources in the parent project (just see Surefire).
Likewise, a user might want to configure an additional plugin to get run in the
lifecycle of the parent project that produces output in "target".
Since version 2.2, the Clean Plugin has a skip option (see MCLEAN-24) which
should allow you to suppress the cleaning in pom-complete.xml.
> pom packaged (aggregtor) project files shouldn't activate "clean" to delete
> /target
> -----------------------------------------------------------------------------------
>
> Key: MCLEAN-20
> URL: http://jira.codehaus.org/browse/MCLEAN-20
> Project: Maven 2.x Clean Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: David Boden
>
> If you have projects with the following layout:
> cds_adapter/pom.xml
> cds_adapter/pom-complete.xml - an aggregator
> deriv_adapter/pom.xml
> Then when you do:
> mvn -f pom-complete.xml clean install
> what you want is for deriv_adapter's jar to be built and installed followed
> by cds_adapter's jar.
> This happens. However, unfortunately the last thing to run is the "clean
> install" task on the pom-complete.xml project. This deletes the
> cds_adapter/target directory. The desired behaviour would be for the
> aggregator pom not to result in the deletion of the /target directory.
> Aggregator poms do not install anything into "target" and should not take
> part in the "clean" workflow.
> The workaround is to issue the commands separately:
> mvn -f pom-complete.xml clean
> mvn -f pom-complete.xml install
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira