Explicitly set java home in Maven Plugin integration tests
See gh-20193
This commit is contained in:
parent
d4c7315369
commit
76d2bc27eb
|
@ -166,6 +166,7 @@ class MavenBuild {
|
||||||
Files.write(destination.resolve("settings.xml"), settingsXml.getBytes(StandardCharsets.UTF_8),
|
Files.write(destination.resolve("settings.xml"), settingsXml.getBytes(StandardCharsets.UTF_8),
|
||||||
StandardOpenOption.CREATE_NEW);
|
StandardOpenOption.CREATE_NEW);
|
||||||
request.setBaseDirectory(this.temp);
|
request.setBaseDirectory(this.temp);
|
||||||
|
request.setJavaHome(new File(System.getProperty("java.home")));
|
||||||
request.setProperties(this.properties);
|
request.setProperties(this.properties);
|
||||||
request.setGoals(this.goals.isEmpty() ? Collections.singletonList("package") : this.goals);
|
request.setGoals(this.goals.isEmpty() ? Collections.singletonList("package") : this.goals);
|
||||||
request.setUserSettingsFile(new File(this.temp, "settings.xml"));
|
request.setUserSettingsFile(new File(this.temp, "settings.xml"));
|
||||||
|
|
Loading…
Reference in New Issue