Print out maven wrapper version at every invocation

This commit is contained in:
Tadaya Tsuyukubo 2017-04-27 17:17:38 -07:00 committed by rfscholte
parent 274ffb663e
commit 1859142a15
1 changed files with 4 additions and 1 deletions

View File

@ -41,13 +41,16 @@ public class MavenWrapperMain {
File propertiesFile = wrapperProperties(wrapperJar);
File rootDir = rootDir(wrapperJar);
String wrapperVersion = wrapperVersion();
System.out.println("Maven Wrapper: " + wrapperVersion);
Properties systemProperties = System.getProperties();
systemProperties.putAll(parseSystemPropertiesFromArgs(args));
addSystemProperties(rootDir);
WrapperExecutor wrapperExecutor = WrapperExecutor.forWrapperPropertiesFile(propertiesFile, System.out);
wrapperExecutor.execute(args, new Installer(new DefaultDownloader("mvnw", wrapperVersion()), new PathAssembler(mavenUserHome())), new BootstrapMainStarter());
wrapperExecutor.execute(args, new Installer(new DefaultDownloader("mvnw", wrapperVersion), new PathAssembler(mavenUserHome())), new BootstrapMainStarter());
}
private static Map<String, String> parseSystemPropertiesFromArgs(String[] args) {