Maven - How to find correct groupId/artifactId to include dependency in POM

后端 未结 7 1622
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 04:31

In general, what is the best strategy for finding the groupId and artifactId for a well-known dependency for use in a Maven POM? For example, how would I find the correct en

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 04:42

    M2Eclipse, the maven integration of eclipse, supports local searchable indexes of maven repositories. So you can right-click a project or a pom.xml and do

    Maven -> Add Dependency
    

    A dialog appears where you can search for artifacts from your local indexes. Wouldn't want to miss it.

    If that's not an option, use mvnrepository.com

提交回复
热议问题