You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/19 13:02:00 UTC

[jira] [Resolved] (MDEP-505) Apply stripClassifier to folder naming, also add stripType

     [ https://issues.apache.org/jira/browse/MDEP-505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold resolved MDEP-505.
----------------------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)