Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Spring Tool Suite add dependencies using GUI after project creation

Every time I start new Spring Boot project using Spring Tool Suite Spring Starter Project I can add dependencies using GUI like on the screenshot below.

Adding dependencies in GUI

It's very convenient to choose dependencies in GUI. But sometimes I forget to add some dependencies and have to add them to pom.xml manually.

Is it possible to add new dependencies using GUI the same way like during Spring Starter Project configuration after project creation?

like image 740
Michael Dz Avatar asked Mar 06 '18 15:03

Michael Dz


People also ask

How do I add dependencies after creating a project?

Right-click the consuming project, and select Maven>Add Dependency. In the Enter groupId… field, type com. mycompany or the group ID you entered when you created the utility project.

How do I add a project dependency in STS?

Yes, you can. Right click on the pom of the generated project and choose Spring -> Edit Starters from the context-menu. It opens up the same dialog and lets you add additional dependencies.


1 Answers

Yes, you can. Right click on the pom of the generated project and choose Spring -> Edit Starters from the context-menu. It opens up the same dialog and lets you add additional dependencies.

You just need to take care of the correct Spring Boot version yourself, it isn't set automatically to the version that you chose when you created the project. It doesn't cause any huge trouble if you choose the wrong version, but spring starter modules might show up that aren't compatible with your project.

like image 133
Martin Lippert Avatar answered Oct 22 '22 08:10

Martin Lippert