Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.