Version for spring-boot-maven-plugin must be set when Boot dependencies are added by
See original GitHub issueDescribe the bug
The recipe initialize-spring-boot-migration
must set the version for the spring-boot-maven-plugin
to the current Spring Boot version.
To Reproduce
Run the recipe against a non-Spring application.
spring-boot-maven-plugin
has no version.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
...
</plugin>
Expected behavior
The version for spring-boot-maven-plugin
should be explicitly set to the Spring Boot version used.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</plugin>
Additional context
When Spring Boot dependencies are imported using a dependencyManagement
section instead of parent pom the version of plugins is not managed and must be explicitly set
reported-by: @andreasf
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Spring Boot Maven Plugin Documentation
A dependency management section, inherited from the spring-boot-dependencies POM, that manages the versions of common dependencies. This ...
Read more >java - Maven requires plugin version to be specified for the ...
In my module, I use spring-boot-configuration-processor , which is one of the dependencies managed by spring-boot-starter-parent (well, actually ...
Read more >Spring Boot, Maven and Eclipse Errors and TroubleShooting ...
Approach 1 : Spring Boot Project. In pom.xml, the property java.version should be set to 1.8. <properties> <project.build.
Read more >maven spring-boot-maven-plugin is highlighted in red if ...
maven spring-boot-maven-plugin is highlighted in red if version is specified in paren pom · Top folder from the archive should be opened as...
Read more >Spring Boot - Dependency Management - GeeksforGeeks
You can specify or change the Spring-Boot version. On changing Spring-Boot versions, all the versions of mentioned(added) dependencies will ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @fabapp2
I noticed that the test
InitializeSpringBootMigrationRecipeIntegrationTest
passes but it actually does not compare the migrated code and the expected code(empty-project
). Are you aware of it? I can fix this as part of this issueHey @fabapp2 - That should be perfectly fine. I have submitted a pull request. Please let me know if you need any changes