From 1cd6b2f185900e9b49f4371930cb2969ab0f5511 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Tue, 24 Mar 2015 00:38:32 -0400 Subject: [PATCH] Make sure the maven.multiModuleProjectDirectory envar is set for proper 3.3.1+ execution --- .../java/org/apache/maven/wrapper/BootstrapMainStarter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-wrapper/src/main/java/org/apache/maven/wrapper/BootstrapMainStarter.java b/maven-wrapper/src/main/java/org/apache/maven/wrapper/BootstrapMainStarter.java index d94f4d9bdb..ecd44593a1 100644 --- a/maven-wrapper/src/main/java/org/apache/maven/wrapper/BootstrapMainStarter.java +++ b/maven-wrapper/src/main/java/org/apache/maven/wrapper/BootstrapMainStarter.java @@ -32,6 +32,7 @@ public class BootstrapMainStarter { Thread.currentThread().setContextClassLoader(contextClassLoader); Class mainClass = contextClassLoader.loadClass("org.codehaus.plexus.classworlds.launcher.Launcher"); + System.setProperty("maven.multiModuleProjectDirectory", System.getProperty("user.dir")); System.setProperty("maven.home", mavenHome.getAbsolutePath()); System.setProperty("classworlds.conf", new File(mavenHome, "/bin/m2.conf").getAbsolutePath()); @@ -48,5 +49,5 @@ public class BootstrapMainStarter { } } throw new RuntimeException(String.format("Could not locate the Maven launcher JAR in Maven distribution '%s'.", mavenHome)); - } + } }