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
选择你要的版本,进去就可以看到你想要的了
比如要依赖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
选择你要的版本,进去就可以看到你想要的了
相关文章推荐
- HDOJ 题目2836 Traversal(线段树,离散化,DP)
- opencv由Mat相乘想到的几个问题
- iOS---tableview
- Cocoapods的安装与使用
- 马云最新发言:让员工、客户、合作伙伴比自己更强
- django 与 百度 ueditor 富文本编辑器集成
- mysql UNIX时间戳与日期的相互转换
- nginx配置ssl加密(单双向认证、部分https)
- 【SDOI2009】【BZOJ1878】HH的项链
- Spring4与log4j2的集成
- Servlet生命周期
- [MySQL FAQ]系列 — 为什么InnoDB表要建议用自增列做主键
- mongo菜鸟教程
- 基于Spring的Web缓存
- 使用apache ab对nginx+varnish+tomcat进行压力测试的结果报告
- 学习DMA原理
- 浅谈 $().load()
- ZOJ 3195 Design the city 题解
- 基于Spring的Web缓存
- 基于Spring的Web缓存