You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2020/04/27 12:29:00 UTC
[jira] [Closed] (MASSEMBLY-765) add property groupIdPath
[ https://issues.apache.org/jira/browse/MASSEMBLY-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MASSEMBLY-765.
------------------------------------
Fix Version/s: 3.3.0
Assignee: Robert Scholte
Resolution: Fixed
Fixed in [919d18903deb11975d55adc38e4e864d54e0461e|https://gitbox.apache.org/repos/asf?p=maven-assembly-plugin.git;a=commit;h=919d18903deb11975d55adc38e4e864d54e0461e]
The solution is a little bit different compared to the proposal, as the outputDirectory isn't dynamic (it points to the shared directory for all dependencies).
What you now can do is:
{code:xml}
<dependencySet>
<outputDirectory>repository</outputDirectory>
<outputFileNameMapping>${artifact.groupIdPath}/${artifact.file.name}</outputFileNameMapping>
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</dependencySet>
{code}
> add property groupIdPath
> ------------------------
>
> Key: MASSEMBLY-765
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-765
> Project: Maven Assembly Plugin
> Issue Type: Improvement
> Components: dependencySet
> Affects Versions: 2.5.4
> Reporter: Pierre C
> Assignee: Robert Scholte
> Priority: Major
> Labels: features
> Fix For: 3.3.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Hello
> In dependencySet in particular, do you know if it's possible to add a property path from groupID.
> for example ${artifact.groupIdPath} we have com/apache/test instead of com.apache.test
> <dependencySet>
> <outputDirectory>repository/${artifact.groupIdPath}</outputDirectory>
> <includes>
> <include>${project.groupId}:${project.artifactId}</include>
> </includes>
> </dependencySet>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)