Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-17

dependency-maven-plugin enhancement - directory per artifact

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-alpha-1
    • 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.

      Attachments

        Activity

          People

            brianf Brian E Fox
            chatterj Shash Chatterjee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: