From 1859142a151549c980caf6f93088f808c52fdeba Mon Sep 17 00:00:00 2001 From: Tadaya Tsuyukubo Date: Thu, 27 Apr 2017 17:17:38 -0700 Subject: [PATCH] Print out maven wrapper version at every invocation --- .../main/java/org/apache/maven/wrapper/MavenWrapperMain.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maven-wrapper/src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java b/maven-wrapper/src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java index 2e0bd061c2..d451ed395f 100644 --- a/maven-wrapper/src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java +++ b/maven-wrapper/src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java @@ -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 parseSystemPropertiesFromArgs(String[] args) {