maven,nexus远程仓库地址及其配置

Nexus

下载地址 http://www.sonatype.org/nexus/archived/

下载文件:nexus-2.11.4-01-bundle.zip

nexus-2.11.4-01  
sonatype-work :私服的默认仓库

1.1 将bin目录添加到环境变量中
D:\JavaDev\nexus-2.11.4\nexus-2.11.4-01\bin
1.2 配置java文件的路径
打开D:\JavaDev\nexus-2.11.4\nexus-2.11.4-01\bin\jsw\conf\wrapper.conf文件
修改wrapper.java.command=java为你的java.exe文件的路径
例如:
wrapper.java.command=D:\Program Files\Java\jdk1.7.0_07\bin\java
1.3 启动nexus
先安装:nexus install
然后启动:nexus start



maven

setting.xml中添加

 	
nexus* http://maven.aliyun.com/nexus/content/groups/public/nexus-public-snapshotspublic-snapshots http://maven.aliyun.com/nexus/content/repositories/snapshots/
 
  


远程仓库地址:

1.http://maven.aliyun.com/nexus/content/groups/public/
2 http://www.sonatype.org/nexus/
3.http://mvnrepository.com/
4.http://repo1.maven.org/maven2





你可能感兴趣的:(maven)