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

后端 未结 7 1576
隐瞒了意图╮
隐瞒了意图╮ 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:55

    In my experience the best option is mvnrepository.com. for example in your case, just type mysql in the search text field. you will find all available artifacts that contain mysql string. in your case the one fit your needs is: mysql-connector-java for each artifact you have a general description that helps you decide what is best for you. once you click it you get all the available versions and once you click on a version you have all sort of information about it like the code you need to add to your pom.xml, the artifact dependencies and so on...

    0 讨论(0)
提交回复
热议问题