Maven常用仓库地址以及手动添加jar包到仓库
2016-04-10 14:27
330 查看
目录(?)[+]
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/http://mvnrepository.com/ http://search.maven.org/
http://snapshots.repository.codehaus.org/ http://people.apache.org/repo/m2-snapshot-repository http://people.apache.org/repo/m2-incubating-repository/
@2图
@3图
以 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
例如:
我下载的这个 jar 包是放到了 D:\mvn 目录下(D:\mvn\spring-context-support-3.1.0.RELEASE.jar)
那么我在 cmd 中敲入的命令就应该是:
mvn install:install-file -Dfile=D:\mvn\spring-context-support-3.1.0.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar
回车,显示安装成功:
转载自:http://www.blogjava.net/fancydeepin
共有的仓库
http://repository.sonatype.org/content/groups/public/http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/http://mvnrepository.com/ http://search.maven.org/
私有的仓库
http://repository.codehaus.org/http://snapshots.repository.codehaus.org/ http://people.apache.org/repo/m2-snapshot-repository http://people.apache.org/repo/m2-incubating-repository/
手动添加jar包到仓库
@1图@2图
@3图
以 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
例如:
我下载的这个 jar 包是放到了 D:\mvn 目录下(D:\mvn\spring-context-support-3.1.0.RELEASE.jar)
那么我在 cmd 中敲入的命令就应该是:
mvn install:install-file -Dfile=D:\mvn\spring-context-support-3.1.0.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar
回车,显示安装成功:
转载自:http://www.blogjava.net/fancydeepin
相关文章推荐
- Android学习之5.X过渡动画的实现
- LeetCode Valid Palindrom
- 团队博客介绍
- CSS3---border-image
- 后缀自动机 小结
- 【蓝桥杯】【基础训练05】【特殊回文数】
- 虚拟机和主机ping不通解决的方法
- Android入门——电话拨号器和四种点击事件
- 主窗口通用泛型打开不同子窗口
- 基于jquery开发的选项卡
- FFPlay-noConsole-ver-20160409-snapshot
- CSS3_边框
- OpenGL 基础图形绘制与投影变换
- C#对txt的操作
- 助教日志_【沈阳航空航天大学软件工程 1,2 班】前六周排行榜
- Maven详解之仓库------本地仓库、远程仓库
- Hibernate环境搭建步骤
- 真实感球绘制
- 邁向IT專家成功之路的三十則鐵律 鐵律十四:IT人言談之道-守中
- if和switch的原理