-
Notifications
You must be signed in to change notification settings - Fork 42
New Maven Project Wizards
The plugin adds two items to the Maven category in the New Project wizard:
This item creates a minimal maven project using Spring Boot. Its roughly equivalent to using the Spring Initializr service accepting all the default values.
After selecting Spring Boot project (basic) on the second wizard page choose the project directory name and location.
The generated project structure is as follows:
The generated project includes the spring-configuration-processor
already set-up as a dependency in its pom.xml
. The wizard also configures the Run and Debug actions for the project to invoke the run
goal of the maven spring-boot plugin.
After selecting Spring Boot project (from Initializr) on the wizard retrieves some metadata from the service and presents some generation parameters on the second page:
Parameters are validated and advance to next page is prevented in case of malformed values.
The third wizard page allows to select the desired Spring Boot version and choose the desired dependencies. Hovering on the checkboxes a description tooltip is shown. Dependencies not available for the chosen boot version are grayed out:
It's also possible to filter dependencies by name using the top right filter textfield:
On the final wizard page choose the project directory name and location. There are also options to remove the maven wrapper files from the generated project (useful only when building from the command line and not supported by NetBeans), automatically add the spring configuration processor dependency and finally set-up NetBeans maven project configuration to run/debug the project using the spring maven plugin (spring-boot:run
goal):
As an example, with the choices made in the pictures above the generated project structure is as follows: