I am using eclipse with m2e plugin and I have in my home folder my local repository. m2e sees it because when I go to
Window->Show View->Maven->Maven Repositories
I can see my local repo, but when I try to add dependency to my project I need to manually write group-id and artefact-id. Surely there must be a way to add dependency through some menu which lists jars in the repository.
Easy to do, two ways:
The Add Dependency dialog has a Search field which allows you to start typing and will show matching artifacts. Start typing spring, and it will show you everything Spring-related. You can then pick the desired artifact and version from the list of results and it will be added to your POM file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With