Jesse Shaffer created MDEP-505:
----------------------------------
Summary: Apply stripClassifier to folder naming, also add stripType
Key: MDEP-505
URL: https://issues.apache.org/jira/browse/MDEP-505
Project: Maven Dependency Plugin
Issue Type: Improvement
Components: unpack-dependencies
Affects Versions: 2.10
Environment: Eclipse Mars
Java 1.8u60 x64
Windows 7 Pro
Reporter: Jesse Shaffer
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.
{code:xml}
<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>
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)