欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

配置maven nenux仓库

发布时间:2025/5/22 35 豆豆
生活随笔 收集整理的这篇文章主要介绍了 配置maven nenux仓库 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

2019独角兽企业重金招聘Python工程师标准>>>

打开 https://www.sonatype.com/download-oss-sonatype 下载 nexus-2.14.4-03-bundle.tar.gz mkdir -p /home/maven-repotar xf nexus-2.14.8-01-bundle.tar.gz -C /home/maven-repo/home/maven-repo/nexus-2.14.8-01/bin/nexus start访问 http://localhost:8081/nexus 账号: admin 密码: admin123选择 views/repositories–>repositories 选择 central 选择 configuration 找到其中的Download Remote Indexes,把fasle改为true 在上边的中央仓库记录上点击右键,选择update index 然后在下边选中Browse Index选项卡,打开central这颗树的节点,应该能看到内容打开D:\apache-maven\conf\settings.conf,添加如下配置<server><id>nexus</id><username>admin</username><password>admin123</password></server><mirror><id>nexus</id><mirrorOf>*</mirrorOf><url>http://localhost:8081/nexus/content/groups/public</url></mirror> 找到mirrors标签,在其中添加上边的配置打开父项目的pom.xml文件,添加如下配置 <distributionManagement><repository><id>repo</id><name>public</name><url>http://localhost:8081/nexus/content/repositories/releases</url></repository><snapshotRepository><id>snapshots</id><name>Snapshots</name><url>http://localhost:8081/nexus/content/repositories/snapshots</url></snapshotRepository> </distributionManagement>

 

转载于:https://my.oschina.net/qiongtaoli/blog/1815470

总结

以上是生活随笔为你收集整理的配置maven nenux仓库的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。