Browse Source

Ensure that server tests pick up latest snapshots

Closes gh-25921
pull/27078/head
Andy Wilkinson 5 years ago
parent
commit
4c42810df9
  1. 1
      spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/ApplicationBuilder.java

1
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/ApplicationBuilder.java

@ -170,6 +170,7 @@ class ApplicationBuilder { @@ -170,6 +170,7 @@ class ApplicationBuilder {
if (settingsXml != null) {
invocation.setUserSettingsFile(settingsXml);
}
invocation.setUpdateSnapshots(true);
DefaultInvoker invoker = new DefaultInvoker();
invoker.setMavenHome(new File("build/maven-binaries/apache-maven-3.6.2"));
InvocationResult execute = invoker.execute(invocation);

Loading…
Cancel
Save