Reputation: 806
I'm new to Spring world. I am following Spring Microservices in Action, where they recommend to use Spring Initializr to get Spring dependencies. However, post that whenever we need to add new dependencies, maven dependencies are provided in book. What would professionals do in such situation? How will new dependencies be found and added to the pom.xml
?
Upvotes: 2
Views: 2139
Reputation: 2536
You can find them in public repositories like https://mvnrepository.com or search for Maven Central alternatives.
Also, you can find your needed dependency on that third-party library's official website, for example, if you want to add Lombok dependency to your project simply find it in https://projectlombok.org/setup/maven
One the other way is Spring Initializr ad you said. Just find and add the dependency inside this website and then click on the Explore link at the bottom of the main page:
And take a look at the pom.xml
file. You can see the dependency:
There are absolutely multiple other ways like finding and adding the dependency in your IDE (IntelliJ, Eclipse ...) and ...
Upvotes: 2