dependency-maven-plugin enhancement - directory per artifact
------------------------------------------------------------

         Key: MOJO-244
         URL: http://jira.codehaus.org/browse/MOJO-244
     Project: Mojo
        Type: Improvement

  Components: sandbox  
    Reporter: Shash Chatterjee


I need to expand the artifacts and then do some post-processing (merging) of 
files.  Currently, the dependency plugin expands all JARs into the same output 
dir, so that files with duplicate names overwrite each other.  It would be 
usefule to have an option to append the artifact name to the output dir. 

I can work around this by creating my own Mojo from 
AbstractFromDependenciesMojo and changing how destDir is calculated, but it 
would be nice if it was supported directly.

In my impl., I simply used:
            File destDir = new File(this.outputDirectory.getPath() + 
File.separator + artifact.getArtifactId());

But, in the generic case, DependencyUtil.getFormattedOutputDirectory(...) could 
probably be enhanced with support from a configuration value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to