mirror of https://github.com/apache/maven.git
Print out maven wrapper version at every invocation
This commit is contained in:
parent
567fccc729
commit
2d87f1f673
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue