用maven管理自己机构使用到的jars

本文介绍如何通过Tomcat部署Nexus作为Maven私服,并配置Maven客户端使用私服。详细步骤包括设置Nexus的访问地址及管理密码,以及如何在Maven的settings.xml中添加私服仓库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装tomcat

安装nexus-webapp.war

nexus服务器 http://localhost:8080/nexus-webapp-1.3.1/content/groups/public/

管理密码 admin admin123

使用了jboss的库,就要加jboss maven服务器:http://repository.jboss.com/maven2/

还有一些很少用到的,可以自己上传到3rd party里面

在文件apache-maven-2.0.8\conf\settings.xml 增加
     
<repositories>
<repository>
<id> private </id>
<name>local private nexus</name>
<url>http://218.193.237.14:8080/nexus-webapp-1.3.1/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id> private </id>
<name>Internal Repository</name>
<url>http://218.193.237.14:8080/nexus-webapp-1.3.1/content/groups/public</url>
</pluginRepository>
</pluginRepositories>


ok
进入项目 ,敲 mvn compile或使用IDEA外部maven即可
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值