Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Commit d402478

Browse files
committed
Print out maven wrapper version at every invocation
1 parent b2305e1 commit d402478

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ public static void main(String[] args) throws Exception {
4141
File propertiesFile = wrapperProperties(wrapperJar);
4242
File rootDir = rootDir(wrapperJar);
4343

44+
String wrapperVersion = wrapperVersion();
45+
System.out.println("Maven Wrapper: " + wrapperVersion);
46+
4447
Properties systemProperties = System.getProperties();
4548
systemProperties.putAll(parseSystemPropertiesFromArgs(args));
4649

4750
addSystemProperties(rootDir);
4851

4952
WrapperExecutor wrapperExecutor = WrapperExecutor.forWrapperPropertiesFile(propertiesFile, System.out);
50-
wrapperExecutor.execute(args, new Installer(new DefaultDownloader("mvnw", wrapperVersion()), new PathAssembler(mavenUserHome())), new BootstrapMainStarter());
53+
wrapperExecutor.execute(args, new Installer(new DefaultDownloader("mvnw", wrapperVersion), new PathAssembler(mavenUserHome())), new BootstrapMainStarter());
5154
}
5255

5356
private static Map<String, String> parseSystemPropertiesFromArgs(String[] args) {

0 commit comments

Comments
 (0)