1首先将maven私服搭建好,

•要解决的问题

–局域网中仅有一台电脑接入Internet

•原材料:nexus-latest-bundle.zip

•搭建步骤

–解压nexus-latest-bundle.zip

–进入nexus-latest-bundle\nexus-2.10.0-02\bin\jsw目录,选择与当前操作系统匹配的目录

–以管理员身份运行: console-nexus.bat

–以管理员身份运行: install-nexus.bat(创建Nexus服务)

–以管理员身份运行: start-nexus.bat(启动Nexus服务)

下载maven私服工具 <http://pan.baidu.com/s/1hrK3vJA>

 

假如

•错误提示

–Thenexus service was launched, but failed to start.

•解决办法

–找到nexus-latest-bundle\nexus-2.10.0-02\bin\jsw\conf\wrapper.conf文件

–找到#Set the JVM executable

–修改wrapper.java.command属性,例如:
wrapper.java.command=D:\DevInstall\Java\jdk1.8.0_111\bin\java



 

 

 

•Nexus默认访问中央仓库,下载速度很慢。访问阿里云镜像则会快很多。

•阿里云镜像地址:http://maven.aliyun.com/nexus/content/groups/public/
<http://maven.aliyun.com/nexus/content/groups/public/>

 



 

 

这时候,就开始进行maven的本地仓库设置,在maven中找到conf中的settings.xml

的配置文件



 



 



 

 



 



 

 



 

这是效果

 

 





 

这样配置后,就下载的东西,能节省仓库空间,不需要额外多一分

 

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信