takari / maven-wrapper

The easiest way to integrate Maven into your project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MavenWrapperDownloader includes extra space in default download url

plnordquist opened this issue · comments

I'm not sure how my maven wrapper was unable to load the maven-wrapper.properties file but it ended up using the DEFAULT_DOWNLOAD_URL constant in the MavenWrapperDownloader class and that constant has an extra space between the version and the '.jar'. I ended up with the following line in my log:

- Downloading from: https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.4/maven-wrapper-0.5.4 .jar

It also logged the failure with this exception java.io.IOException: Server returned HTTP response code: 400 for URL: https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.4/maven-wrapper-0.5.4 .jar

Fixed. Will cut a new release after Maven 3.61. is released probably.