mirror of
https://github.com/apache/maven.git
synced 2025-02-06 18:18:48 +00:00
Make sure the maven.multiModuleProjectDirectory envar is set for proper 3.3.1+ execution
This commit is contained in:
parent
f18d4302c0
commit
1cd6b2f185
@ -32,6 +32,7 @@ public void start(String[] args, File mavenHome) throws Exception {
|
||||
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 @@ private File findLauncherJar(File mavenHome) {
|
||||
}
|
||||
}
|
||||
throw new RuntimeException(String.format("Could not locate the Maven launcher JAR in Maven distribution '%s'.", mavenHome));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user