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

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

    Maven site suggests to browse biblio to get maven co-ordinates; http://www.ibiblio.org/ .

    Say for log4j

    First, we need to know what the groupId, artifactId, and version are for log4j. We can browse ibiblio and look for it, or use Google to help by searching for "site:www.ibiblio.org maven2 log4j".

    Maven metadata for log4j: http://mirrors.ibiblio.org/maven2/log4j/log4j/maven-metadata.xml

提交回复
热议问题