mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 23:45:47 +00:00
Fix #53 Using MAVEN_HOME may clash with other tools
This commit is contained in:
@@ -66,7 +66,7 @@ public class InstallDaemonNativeIT {
|
||||
Environment.MVND_DIST_URI.asCommandLineProperty(mvndDistUri),
|
||||
Environment.MVND_PROPERTIES_PATH.asCommandLineProperty(mvndPropertiesPath.toString()),
|
||||
Environment.JAVA_HOME.asCommandLineProperty(layout.javaHome().toString()),
|
||||
Environment.MAVEN_HOME.asCommandLineProperty(mavenHome.toString()))
|
||||
Environment.MVND_HOME.asCommandLineProperty(mavenHome.toString()))
|
||||
.assertSuccess();
|
||||
|
||||
Assertions.assertThat(mvndPropertiesPath).exists();
|
||||
|
@@ -69,8 +69,8 @@ public class NativeTestClient implements Client {
|
||||
.redirectErrorStream(true);
|
||||
|
||||
final Map<String, String> env = builder.environment();
|
||||
if (!Environment.MAVEN_HOME.hasCommandLineProperty(args)) {
|
||||
env.put("MAVEN_HOME", System.getProperty("mvnd.home"));
|
||||
if (!Environment.MVND_HOME.hasCommandLineProperty(args)) {
|
||||
env.put("MVND_HOME", System.getProperty("mvnd.home"));
|
||||
}
|
||||
if (!Environment.JAVA_HOME.hasCommandLineProperty(args)) {
|
||||
env.put("JAVA_HOME", System.getProperty("java.home"));
|
||||
|
Reference in New Issue
Block a user