Skip to content

Commit a5537bd

Browse files
committed
Fork application process with Maven by default
Closes gh-16945
1 parent 3432044 commit a5537bd

File tree

15 files changed

+37
-191
lines changed

15 files changed

+37
-191
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ and triggers a restart. In IntelliJ IDEA, building the project
829829
====
830830
As long as forking is enabled, you can also start your application by using the supported
831831
build plugins (Maven and Gradle), since DevTools needs an isolated application
832-
classloader to operate properly. By default, Gradle and Maven do that when they detect
833-
DevTools on the classpath.
832+
classloader to operate properly. By default, the Gradle and Maven plugins fork the
833+
application process.
834834
835835
====
836836

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/run-fork/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
<goals>
2323
<goal>run</goal>
2424
</goals>
25-
<configuration>
26-
<fork>true</fork>
27-
</configuration>
2825
</execution>
2926
</executions>
3027
</plugin>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/run-profiles-fork/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<goal>run</goal>
2424
</goals>
2525
<configuration>
26-
<fork>true</fork>
2726
<profiles>
2827
<profile>foo</profile>
2928
<profile>bar</profile>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/run/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<goals>
2323
<goal>run</goal>
2424
</goals>
25+
<configuration>
26+
<fork>false</fork>
27+
</configuration>
2528
</execution>
2629
</executions>
2730
</plugin>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop-automatic-fork/invoker.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop-automatic-fork/pom.xml

Lines changed: 0 additions & 61 deletions
This file was deleted.

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop-automatic-fork/src/main/java/org/test/SampleApplication.java

Lines changed: 0 additions & 82 deletions
This file was deleted.

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop-automatic-fork/verify.groovy

Lines changed: 0 additions & 5 deletions
This file was deleted.

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop-fork/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
</execution>
5151
</executions>
5252
<configuration>
53-
<fork>true</fork>
5453
<jmxPort>${jmx.port}</jmxPort>
5554
</configuration>
5655
</plugin>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/start-stop/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
</goals>
3131
</execution>
3232
</executions>
33+
<configuration>
34+
<fork>false</fork>
35+
</configuration>
3336
</plugin>
3437
</plugins>
3538
</build>

0 commit comments

Comments
 (0)