You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michel Schudel (Jira)" <ji...@apache.org> on 2019/12/24 13:44:00 UTC
[jira] [Commented] (MRESOURCES-250) Add ability to flatten folder
structure into target directory when copying resources
[ https://issues.apache.org/jira/browse/MRESOURCES-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17002840#comment-17002840 ]
Michel Schudel commented on MRESOURCES-250:
-------------------------------------------
[~rfscholte] I'd love to take a crack at this. Just to make sure I understand correctly what the issue is, and my proposed solution:
The issue is that the maven-resources-plugin doesn't support directory flattening out-of-the-box, correct?
If so, a solution would be:
* Give the DefaultMavenResourceFiltering in the maven-filtering project the ability to copy to a flattened dir structure, using an extra property in the MavenResourcesExecution, for example "flattenDirs".
* Ability to set this property in the ResourcesMojo and TestResourcesMojo
* Extra: what to do with duplicate file names?
> Add ability to flatten folder structure into target directory when copying resources
> ------------------------------------------------------------------------------------
>
> Key: MRESOURCES-250
> URL: https://issues.apache.org/jira/browse/MRESOURCES-250
> Project: Maven Resources Plugin
> Issue Type: New Feature
> Components: copy
> Reporter: Jamie Spence
> Priority: Major
> Labels: up-for-grabs
>
> See flatten description at: h[ttps://ant.apache.org/manual/Tasks/copy.html|https://ant.apache.org/manual/Tasks/copy.html]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)