Merge pull request #20193 from dreis2211

* gh-20193:
  Explicitly set java home in Maven Plugin integration tests

Closes gh-20193
pull/20213/head
Andy Wilkinson 5 years ago
commit dcbbe20d41

@ -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…
Cancel
Save