JoyOfCoding icon indicating copy to clipboard operation
JoyOfCoding copied to clipboard

Is there a newer version of the mvnw script available?

Open DavidWhitlock opened this issue 2 years ago • 4 comments

I just noticed that I was able to run mvnw on a Windows machine without it running into a problem with curl like a student saw. I wonder if we're using an old version of the mvnw script.

DavidWhitlock avatar Jul 07 '22 23:07 DavidWhitlock

It looks like there is also mvnwDebug script that can be added, too:

https://maven.apache.org/wrapper/maven-wrapper-plugin/usage.html

DavidWhitlock avatar Jul 24 '22 23:07 DavidWhitlock

See also #335.

DavidWhitlock avatar Jul 24 '22 23:07 DavidWhitlock

It looks like we're using the latest takari Maven Wrapper: https://mvnrepository.com/artifact/io.takari/maven-wrapper

The official Apache one still only works with Maven 4 and that still isn't available yet.

DavidWhitlock avatar Sep 10 '22 12:09 DavidWhitlock

The official Apache wrapper works fine with Maven 3, see one of my Maven wrapper properties files:

distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

You just have to set it up as described here.

kiwi-oss avatar Feb 20 '23 14:02 kiwi-oss