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/05/12 20:35:00 UTC

[jira] [Comment Edited] (MDEP-480) There should be an option to prevent files overwrite for unpack-dependencies and unpack

    [ https://issues.apache.org/jira/browse/MDEP-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105720#comment-17105720 ] 

Robert Scholte edited comment on MDEP-480 at 5/12/20, 8:34 PM:
---------------------------------------------------------------

The description contains an interesting word: scope for artifact or file. Right now overwriteRelease, overwriteSnapshot, overwriteIfNewer are all booleans, but I think it makes sense to allow the scope here too. So valid values would be: 
- true 
- false
- artifact: (similar to true)
- file

This will keep the number of parameters small.  


was (Author: rfscholte):
The description contains an interesting word: scope for artifact or file. Right now overwriteRelease, overwriteSnapshot, overwriteIfNewer are all booleans, but I think it makes sense to allow the scope here too. So valid values would be: 
- true 
- false
- artifact: (similar to true)
- file
This will keep the number of parameters small.  

> There should be an option to prevent files overwrite for unpack-dependencies and unpack
> ---------------------------------------------------------------------------------------
>
>                 Key: MDEP-480
>                 URL: https://issues.apache.org/jira/browse/MDEP-480
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack, unpack-dependencies
>            Reporter: duongdeptrai
>            Assignee: Benson Margulies
>            Priority: Major
>         Attachments: patch-maven-dependency-2.9-overwriteFiles.patch
>
>
> There should be an option to prevent file overwrite when extracting files.
> This option is very helpful when unpack or unpack-dependencies happens after process-resouce phase. 
> Currently, there is overwriteRelease, overwriteSnapshot, overwriteIfNewer. But they all work on the artifact scope (that means decide if a whole artifact should overwrite), not files scope (if a file should overwrite an existing file).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)