将下载好的jar包安装到本地maven仓库
2016-06-22 17:55
162 查看
这个功能一般很少使用,但是使用起来也还是很方便,这里使用主要是一些在公共仓库中没有的jar包,比如oracle数据库驱动。
以 spring-context-support-3.1.0.RELEASE.jar 为例,在 @3图中已经给出这个 jar 包的 groupId,artifactId,version信息,
手动安装的时候这些信息不要改,否则 Maven 项目移植的话,jar 包下载就会失败。顺便把这信息帖下面,方便对照:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
Maven 安装 JAR 包的命令是:
mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar
以 spring-context-support-3.1.0.RELEASE.jar 为例,在 @3图中已经给出这个 jar 包的 groupId,artifactId,version信息,
手动安装的时候这些信息不要改,否则 Maven 项目移植的话,jar 包下载就会失败。顺便把这信息帖下面,方便对照:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
Maven 安装 JAR 包的命令是:
mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar
相关文章推荐
- linux ps 查看进程内存使用情况
- jar包下载地址
- Android Studio TraceView性能优化分析
- 简单实现cell的动画
- iOS静态库中打包图片资源
- CPU基础
- a标签使用href=”javascript:void(0); 在火狐浏览器跟chrome 不兼容
- Log4j2 SMTPAppender 配置与使用
- Linux ps命令详解与示例说明
- vector笔记
- C#接口的作用
- mysql索引结构原理、性能分析与优化
- 【数据结构】单链表的基本操作
- android MVP模式介绍与实战
- Eclipse部署Maven web项目到tomcat服务器时,没有将lib下的jar复制过去的解决办法
- ZK框架简介
- [swift、oc]浅聊nil、Nil、NULL、NSNull的区别
- cas单点登录出现的重定向循环问题解决方案
- cordova的初识(一)
- oracle listagg(field,',') within group(order by field)