Affects Version/s: 3.0.2
Fix Version/s: None
Component/s: Artifacts and Repositories
Environment:Windows XP SP 3
I have a custom MOJO where in I add a piece of metadata to the project's primary artifact. I've extended the AbstractArtifactMetadata class to do so. The getLocalFilename and getRemoteFilename methods simply return a string in the following format $artifactId-$version.nvn. In Maven 2.2.1 the file would get stored in the repository properly. For example, emc-vsi-core-features-4.1.0-SNAPSHOT.nvn is how the file should look, and does in Maven 2.2.1. In Maven 3 the file resembles emc-vsi-core-features-4-local.1.0-SNAPSHOT.nvn. Clearly the new local resolution logic in Maven 3 is inserting the text "local" into the metadata's file name prior to storing it on the file system.
I'm simply invoking the primary artifact's addMetadata method and passing it an instance of my custom class. I've attached my metadata class to this bug report.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|1083d 9h 43m||1||Jason van Zyl||22/Jan/14 20:31|
|Workflow||jira [ 12952770 ]||Default workflow, editable Closed status [ 12990108 ]|
|Project Import||Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]|
|Workflow||jira [ 12715254 ]||Default workflow, editable Closed status [ 12754838 ]|
|Project Import||Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]|
|Field||Original Value||New Value|
|Resolution||Incomplete [ 4 ]|
|Status||Open [ 1 ]||Closed [ 6 ]|