AlexFalappa / nb-springboot

NetBeans IDE plugin supporting programming with Spring Boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debug not working with Spring Boot 2.x

AlexFalappa opened this issue · comments

In Spring Boot 2.x the parameters names of the spring-boot-maven-plugin have changed, this unfortunately broke the debug launch functionality.

As stated in the M3 release notes:

The plugin configuration attributes that are exposed as properties now all start with a spring-boot prefix for consistency and to avoid clashes with other plugins.

Version detection is needed to properly support both 1.5.x and 2.x

As a workaround for current (v1.6.1) version, edit nbactions.xml file in your project and replace everywhere:

  • run.jvmArguments with spring-boot.run.jvmArguments
  • run.mainClass with spring-boot.run.mainClass