Skip to content
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

Please add missing spring-boot actions to existing projects #130

Open
Chris2011 opened this issue Jan 18, 2018 · 1 comment
Open

Please add missing spring-boot actions to existing projects #130

Chris2011 opened this issue Jan 18, 2018 · 1 comment
Milestone

Comments

@Chris2011
Copy link

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.xml file 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 run and debug goals
  • If your plugin finds an existing nbactions.xml file, scan the file and check whether there is smth written with spring-boot:run or spring-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 run and debug goal
  • if run and debug are still inside, do nothing, maybe someone use their own run and debug goal

Let me know, if you have any further questions.

Cheers

Chris

@Chris2011
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants