Wolfgang Knauf created MWRAPPER-98:
--------------------------------------
Summary: 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
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)