Change By: Grégory Joseph (22/Oct/14 4:37 PM)
Description: Will add profile such that doing {{mvn -P purge-magnolia-deps clean}} removes the current project 's  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 -
DremoveAll=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 the profile configures {{includes}} to be {{info.magnolia*}} star. So one also needs to use the {{-Dinclude}} flag. e.g.:
{{mvn -Dinclude=commons-lang -DresolutionFuzziness=groupId -P purge-magnolia-deps clean}}

One can also use the {{-DmanualInclude}} flag, which will then remove artifacts even if the current project doesn't depend on them (and in this case I think {{resolutionFuzziness}} makes no sense and is ignored)

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