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 14:22:00 UTC

[jira] [Comment Edited] (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 edited comment on MRESOURCES-250 at 12/24/19 2:21 PM:
---------------------------------------------------------------------

[~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? I would suggest just overwriting with a warning if "overwrite" is set to true, otherwise throw an error.

 

 

 


was (Author: schudel):
[~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)