Skip to content

Commit c4b5c61

Browse files
bsmahifabapp2
andauthored
Resolved Remediation for Fork in Spring Boot 3.0 (#861)
Co-authored-by: Fabian Krüger <[email protected]>
1 parent dc64fa2 commit c4b5c61

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/27_30/report/sbu30-report.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,23 +1391,19 @@
13911391

13921392
change: |-
13931393
The `fork` attribute of `spring-boot:run` and `spring-boot:start` that was deprecated in Spring Boot 2.7 has been removed.
1394-
1394+
Hence, we should replace with `process-exec-maven-plugin`.
13951395
affected: |-
13961396
Actually, we don't know if the scanned application is really affected by this change.
13971397
But we found a dependency matching regex `org\.springframework\.boot\:spring-boot-starter\:.*`.
13981398
This indicates that the scanned application might be affected.
13991399
remediation:
14001400
description: |-
1401-
[IMPORTANT]
1402-
====
1403-
This section has been automatically generated from the https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#running-your-application-in-the-maven-process[Spring Boot 3.0 Migration Guide^, role="ext-link"]. +
1404-
**Please consider contributing to issue https://github.com/spring-projects-experimental/spring-boot-migrator/issues/666[#666^, role="ext-link"]**
1405-
====
1401+
Add the process-exec-maven-plugin in pom.xml under plugin section, for more details, please go through the link https://github.com/bazaarvoice/maven-process-plugin[Maven Process Plugin^, role="ext-link"]. +
14061402
projects:
14071403
- spring-boot
14081404
gitHubIssue: 666
1409-
# contributors:
1410-
# - Your Name[@your-gh-handle]
1405+
contributors:
1406+
- "Mahendra Rao[@bsmahi]"
14111407

14121408

14131409
#

components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/RunningYourApplicationInTheMavenProcessReportSectionTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,15 @@ void withSingleModuleApplicationShouldRender() {
3838
3939
==== What Changed
4040
The `fork` attribute of `spring-boot:run` and `spring-boot:start` that was deprecated in Spring Boot 2.7 has been removed.
41+
Hence, we should replace with `process-exec-maven-plugin`.
4142
4243
==== Why is the application affected
4344
Actually, we don't know if the scanned application is really affected by this change.
4445
But we found a dependency matching regex `org\\.springframework\\.boot\\:spring-boot-starter\\:.*`.
4546
This indicates that the scanned application might be affected.
4647
4748
==== Remediation
48-
[IMPORTANT]
49-
====
50-
This section has been automatically generated from the https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#running-your-application-in-the-maven-process[Spring Boot 3.0 Migration Guide^, role="ext-link"]. +
51-
**Please consider contributing to issue https://github.com/spring-projects-experimental/spring-boot-migrator/issues/666[#666^, role="ext-link"]**
52-
====
49+
Add the process-exec-maven-plugin in pom.xml under plugin section, for more details, please go through the link https://github.com/bazaarvoice/maven-process-plugin[Maven Process Plugin^, role="ext-link"]. +
5350
5451
5552
""");

0 commit comments

Comments
 (0)