You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2023/03/05 19:03:00 UTC

[jira] [Closed] (MWRAPPER-98) distributionType=script does not overwrite files

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

Slawomir Jaranowski closed MWRAPPER-98.
---------------------------------------
    Resolution: Duplicate

> distributionType=script does not overwrite files
> ------------------------------------------------
>
>                 Key: MWRAPPER-98
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-98
>             Project: Maven Wrapper
>          Issue Type: Bug
>          Components: Maven Wrapper Scripts
>    Affects Versions: 3.1.1
>            Reporter: Wolfgang Knauf
>            Priority: Major
>
> Not sure whether this is a bug or a misunderstanding: This project [https://github.com/arquillian/arquillian-extension-warp] contains a rather old version of Maven Wrapper. So I tried to update it.
>  
> When using this command...
> {code:java}
> mvn wrapper:wrapper -Dtype=script{code}
> ...I would expect it to overwrite "mvnw.cmd" and "mvnw" with newer versions, but the files are not modified. When deleting them before, it works. They are not write protected.
>  
> This command...
> {noformat}
> mvn wrapper:wrapper -Dtype=bin{noformat}
> ...overwrites ".mvn/wrapper/maven-wrapper.jar" and ".mvn/wrapper/maven-wrapper.properties", as expected.
> Also, I wonder how the old project managed to combine the distribution types "bin", "source" and "script" in one package. I assume it is not possible to combine all three types?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)