Make sure the maven.multiModuleProjectDirectory envar is set for proper 3.3.1+ execution

This commit is contained in:
Jason van Zyl 2015-03-24 00:38:32 -04:00 committed by rfscholte
parent f18d4302c0
commit 1cd6b2f185
1 changed files with 2 additions and 1 deletions

View File

@ -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());