-
Notifications
You must be signed in to change notification settings - Fork 42
Maven Pom Code Generators
The plugin contributes some code generators to those available when editing Maven pom.xml
files.
Available while editing a Maven pom.xml
file of a Spring Boot project:
Presents a dialog that allows to choose one of the Spring Boot opinionated dependencies:
The dialog offers functionalities similar to the third step of the Initializr Project wizard, that is allows to filter dependencies, shows item descriptions in a tooltip and opens documentation links.
Spring Boot version is detected from the pom (<parent>
tag) or otherwise be explicitly chosen in the dialog.
Available while editing a Maven pom.xml
file of a non Spring Boot project:
Performs the following modifications to the current pom.xml
:
- makes it a child of
spring-boot-starter-parent
(adds a<parent>
tag) - adds the
spring-boot-maven-plugin
to the plugins in thebuild
section - adds a
spring-boot-starter
compile dependency - adds a
spring-boot-starter-test
test dependency
Note: this code generator only modifies the
pom.xml
file, it does not make modifications to project structure or NetBeans project options. Whenever possible use one of the new project wizards.