takari / maven-wrapper

The easiest way to integrate Maven into your project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell command fails if .mvn files aren't present

HopefulLlama opened this issue · comments

The README.md states:

If the JAR is not found to be available by the scripts they will attempt to download the file from the URL specified in .mvn/wrapper/maven-wrapper.properties under wrapperUrl and put it in place.

However, this appears to fail using the Shell script, when the .mvn files are not present. Doing so gives an error as follows:

+ ./mvnw clean deploy -U
./mvnw: line 214: [: missing `]'
./mvnw: line 276: /<project-directory>/.mvn/wrapper/maven-wrapper.properties: No such file or directory
/<project-directory>/.mvn/wrapper/maven-wrapper.jar: No such file or directory
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

Wrapper Version: 0.5.2
OS: Centos (Unsure of the version)
Java: JDK_8u144

Hm, I missed the part that clearly states from the URL specified in .mvn/wrapper/maven-wrapper.properties.

Closing this issue.