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

Add a <stripType> option to unpack goals

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.4.0
    • unpack-dependencies
    • None
    • Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)

    Description

      When using unpack-dependencies with

      <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
      <stripVersion>true</stripVersion>
      

      dependencies will get unpacked in directories like ${outputDirectory}/some-artifactId-jar/. In other words, the artifact's type is always appended; AFAICT from the code, there is no way to unpack into a directory whose name is just the dependency's artifactId.

      It would hence be nice to have a <stripType> configuration option to mirror <stripVersion> and <stripClassifier> (although the later option is also ignored on unpack-dependencies. A separate bug?).

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              asewe Andreas Sewe
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: