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

来源:互联网 发布:中国国际地位知乎 编辑:程序博客网 时间:2024/06/05 14:26

http://liu400liu.iteye.com/blog/1191075


对于初学maven的人来说刚开始会有个困惑,那就是怎么知道依赖的jar的groupId和atrifactId是什么,

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

Xml代码  收藏代码
  1. <dependency>  
  2.     <groupId>org.mybatis</groupId>  
  3.     <artifactId>mybatis</artifactId>  
  4.     <version>3.0.5</version>  
  5. </dependency>  

 

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

 

http://search.maven.org/#browse

 

 

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

 


0 0
原创粉丝点击