You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2014/07/02 15:44:56 UTC
[jira] (MNG-3127) Plugins cannot contribute custom
ArtifactTransformation objects
[ https://jira.codehaus.org/browse/MNG-3127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated MNG-3127:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> Plugins cannot contribute custom ArtifactTransformation objects
> ---------------------------------------------------------------
>
> Key: MNG-3127
> URL: https://jira.codehaus.org/browse/MNG-3127
> Project: Maven
> Issue Type: Improvement
> Components: Artifacts and Repositories
> Affects Versions: 2.0.5
> Reporter: Kohsuke Kawaguchi
>
> I was hoping to provide a custom ArtifactTransformation object from a plugin so that I can define the likes of RELEASE and LATEST in my project.
> But it turns out that because DefaultArtifactTransformationManager is instantiated and composed very early on, even before any plugin gets loaded,
> DefaultArtifactTransformationManager.artifactTransformations do not get my ArtifactTransformation.
> Note that the fact that DefaultArtifactTransformationManager is created early on by itself makes sense because to load a plugin you'd need to be able to resolve plugin versions.
> I think what's really needed here is for DefaultArtifactTransformationManager to have smaller scopes like PerLookup (so that it gets the list of ArtifactTransformation that matches the current context.)
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)