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

Apply stripClassifier to folder naming, also add stripType

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.10
    • Fix Version/s: None
    • Component/s: unpack-dependencies
    • Labels:
      None
    • Environment:
      Eclipse Mars
      Java 1.8u60 x64
      Windows 7 Pro

      Description

      First off, I'm new to this, so what I'm trying to accomplish may be doable another way. Basically, I am trying to unpack dependencies into directories based solely on the artifactId, but so far have been stymied.

      <execution>
      	<id>unpack-modules</id>
      	<phase>generate-resources</phase>
      	<goals>
      		<goal>unpack-dependencies</goal>
      	</goals>
      	<configuration>
      		<includeClassifiers>modules.source</includeClassifiers>
      		<excludes>META-INF/**</excludes>
      		<useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
      		<stripVersion>true</stripVersion>
      		<stripClassifier>true</stripClassifier>
      		<overWriteReleases>true</overWriteReleases>
      		<overWriteSnapshots>true</overWriteSnapshots>
      		<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/modules</outputDirectory>
      	</configuration>
      </execution>
      

      Based on the above configuration, the modules get extracted into /modules/

      {artifactId}-{classifier}-{type}. However, what I'm wanting is for my modules to be extracted into /modules/{artifactId}

      .

      Part of this feels more like a bug, seeing as MDEP-295 was requested but not implemented for directories. In any case, I would also need to have the type stripped out also.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dajester2015 Jesse Shaffer
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: