Skip to content

Maven Pom Code Generators

Alessandro Falappa edited this page Aug 30, 2018 · 8 revisions

The plugin contributes some code generators to those available when editing Maven pom.xml files.

Spring Boot Dependencies

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.

Inject Spring Boot Setup

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 the build 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.