-
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 basic project 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.
The generated project respects the default launch options specified in the global plugin options.
This item creates a maven project using the Spring Initializr web service. See a working session here.
After selecting Spring Boot Initializr project on the wizard retrieves some metadata from the service (see the options chapter for configuration details) and presents some generation parameters on the second page:
Parameters are validated and advance to next page is blocked 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. The two small buttons on some dependencies open related documentation links, respectively the reference and the guide, in the platform browser. Dependencies not available for the chosen boot version are grayed out and the required boot versions are highlighted in the tooltip:
Dependencies can be filtered by name using the top right textfield:
The last wizard page allows to 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)
- configure the Run and Debug actions for the project to invoke the
run
goal of the maven spring-boot plugin
The wizard marks the devtools dependency, if selected, as optional as recommended in the documentation.
The generated project respects the default launch options specified in the global plugin options.