Please add missing spring-boot actions to existing projects
So when you create a new project with your project wizard, the nbactions.xml file will be created and will override the run and debug goals which is ok, because they will call the spring-boot:run goal with additional parameters.
If you have an existing maven project, where the spring boot framework is used, we have to add this nbactions.xml file too.
Here are the scenarios:
- While opening the project, scan for
nbactions.xmlfile or what could be similar to that name - If your plugin doesn't find this file, creates it with the needed goals as custom goals or override the
runanddebuggoals - If your plugin finds an existing
nbactions.xmlfile, scan the file and check whether there is smth written withspring-boot:runorspring-boot:start - if so, do nothing or check for stuff, which is still missing
- if the plugin doesn't find such goal, add this goal or override the default
runanddebuggoal - if
runanddebugare still inside, do nothing, maybe someone use their ownrunanddebuggoal
Let me know, if you have any further questions.
Cheers
Chris
Sure, to adding a application.properties or application.yaml file as or the a base class to the existing projects nbactions.xml doesn't make sense, because some is using application.yaml or application-local.yaml or application.properties or whatever, so this is not needed, the user has to add this file to the project properties of the plugin, that the goal uses -Dspring.config.location=file.