Issue Type: Improvement Improvement
Affects Versions: 1.7
Assignee: Unassigned
Attachments: backtrack.patch
Created: 01/Jun/12 5:14 AM
Description:

I'd like to have an option reverse what has been attached to project and I've included a proposal in form of patch which is just a new configuration switch to attach instead of a whole new goal because I feel that this feature is intended for cunning hands only. Some of the other goals might also benefit of having a backtracking possibility in the future.

Use case 1: Temporary Attachment

A good use case would be using of cargo plugin that can make use of attachments as well as dependencies. This new capability would be handy to undo an attachment at post-integration-test phase that been added pre-integration-test phase. I'd be using test scope dependencies but the idea is not to make the attachment publicly available in any form. An invoker project could be used but that would be an overkill because then all of the dependencies would need to be replicated there as well and basically misuse of the original intentions of that plugin.

Use case 2: Attachment Adjustment

Another case is when plugins lack a feature or two which I think is the main reason for this plugin to exist in the first place. A maven-bundle-plugin can create attachments but doesn't have all the magic I'd like. I could ask the nice folks to add a bunch of bells and jingles for me which would garbage out the plugin config (jar plugin doesn't have a skipAttach so why should bundle plugin) but instead I could just apply a nuke to that attachment, fix the attachment and reattach it under a different GAV. Ugly as it can get, but works instantly. This is use cause the main reason for this issue and the first one was just a fancy marketing speech.

Environment: Tested using 3.0.4 and 2.2.1 versions of Maven
Project: Maven 2.x Build Helper Plugin
Priority: Major Major
Reporter: Tuomas Kiviaho
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
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to