您的位置:首页 > 其它

maven管理项目如何查找jar依赖

2015-11-03 16:21 435 查看
对于初学maven的人来说刚开始会有个困惑,那就是怎么知道依赖的jar的groupId和atrifactId是什么,

比如要依赖mybatis,会在pom.xml中配置如下:

Xml代码


<dependency>

<groupId>org.mybatis</groupId>

<artifactId>mybatis</artifactId>

<version>3.0.5</version>

</dependency>

那怎么知道groupId是org.mybatis,artifactId是mybatis呢。方法很简单,可以到maven的官网查询,打开如下网址,查询框中输入mybatis
http://search.maven.org/#browse


选择你要的版本,进去就可以看到你想要的了

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: