Browse Source

Upgrade to Maven Invoker 3.3.0

Closes gh-45904
pull/45964/head
Andy Wilkinson 6 months ago
parent
commit
4996c70f48
  1. 2
      spring-boot-project/spring-boot-parent/build.gradle
  2. 2
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java

2
spring-boot-project/spring-boot-parent/build.gradle

@ -117,7 +117,7 @@ bom {
] ]
} }
} }
library("Maven Invoker", "3.2.0") { library("Maven Invoker", "3.3.0") {
group("org.apache.maven.shared") { group("org.apache.maven.shared") {
modules = [ modules = [
"maven-invoker" "maven-invoker"

2
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java

@ -167,7 +167,7 @@ class MavenBuild {
request.setBaseDirectory(this.temp); request.setBaseDirectory(this.temp);
request.setJavaHome(new File(System.getProperty("java.home"))); 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.addArgs(this.goals.isEmpty() ? Collections.singletonList("package") : this.goals);
request.setUserSettingsFile(new File(this.temp, "settings.xml")); request.setUserSettingsFile(new File(this.temp, "settings.xml"));
request.setUpdateSnapshots(true); request.setUpdateSnapshots(true);
request.setBatchMode(true); request.setBatchMode(true);

Loading…
Cancel
Save