-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM arguments not working with spring boot 2.0.0 #136
Comments
All of them. |
Spring Boot 2.0 is fully supported in NB Spring Boot plugin 2.0, I guess you are using a previous version. Unfortunately the new version is not available yet from the Update Center as it is under verification. |
Just checked the Plugins Portal, it seems the plugin has been verified for NetBeans 8.1 only, verification for NetBeans 8.2 is still ongoing. |
I installed the plugin manually from nb plugin portal. The downloaded plugin file had version 2.0 in it`s name, so I thought it was plugin version 2.0 with the support for Spring Boot 2. |
@anaq1 if you have NB Spring Boot plugin v2.0 then something else is going on. |
I checked the version of the plugin in NB, it says: When I create new project from template"Spring boot basic project", the project has following "Run project" action properties:
I added spring.flyway.enabled propety in Spring Boot tab in project properties and these lines were changed to:
Using the plugin on existing Spring Boot 2 project (created manually, I installed the plugin afterwards)
After I installed the plugin, the Spring Boot tab was empty, so I added spring.flyway.enabled in "Override configuration properties" list. This changed the debug action:
So I tried to delete everything from the action - Spring Boot tab stayed the same (the flyway property still present). So I removed and added the spring.flyway.enabled property once again, which leads the debug action changed to:
The run action changed to: It looks like the plugin is generating wrong properties in 2 situations:
Hope this description helps. |
Excellent analysis @anaq1 ! I will open a separate issue for the first point in your last list. As for point two working with existing projects (not generated via basic or Initializr wizard) is indeed not optimal and has already been reported by other users (see issue #130). Will keep this open as a use case when improving the experience with existing projects. |
At this moment adding a property in jvm arguments generates this line:
run.jvmArguments=-Xdebug
This is valid for spring boot version < 2.0.0, for 2.0.0 it must be
spring-boot.run.jvmArguments=-Xdebug
I think there are more properties which needs this "spring-boot" prefix in 2.0.0.
The text was updated successfully, but these errors were encountered: