Change By: Grégory Joseph (22/Oct/14 5:27 PM)
Description: Will add profile such that doing {{mvn -P purge-magnolia-deps clean}} removes the current project and its Magnolia dependencies from the local repo, using:
* http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
* http://mojo.codehaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html

If one wants to purge _all_ versions of artifacts the current project depends on
:
{{mvn -Dbuildhelper.removeAll=true -DresolutionFuzziness=artifactId -P purge-magnolia-deps clean}}
(where {{removeAll}} is a flag for removal of current project (build-helper plugin) and {{resolutionFuzziness}} is a flag of the dependency plugin.

If one wants to purge _all_ artifacts and versions of any groupIDs that the current project depends on:
{{mvn -DresolutionFuzziness=groupId -P purge-magnolia-deps clean}}

The above makes no sense
,  since  or use other includes,  the profile  configures {{includes}} to  can't  be  {{info.magnolia*}} star. So one also needs to use the {{  used, because command - Dinclude}} flag. e.g.:
{{mvn -Dinclude=commons-lang -DresolutionFuzziness=groupId -P purge-magnolia-deps clean}}

One
line parameters  can  also use the {{-DmanualInclude}} flag, which will then remove artifacts even if the current project doesn 't  depend on them (and  be used to override configuration parameters that are used explicitly  in  this case I think {{resolutionFuzziness}} makes no sense and is ignored)  poms.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to