nexus 3.17.0-01 windows安装及使用
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了nexus 3.17.0-01 windows安装及使用,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1967字,纯文字阅读大概需要3分钟。
内容图文
![nexus 3.17.0-01 windows安装及使用](/upload/InfoBanner/zyjiaocheng/966/820c7112efc64ec7bde485d59b38387b.jpg)
1.解压后执行 nexus.exe /run 启动私服服务 2.打开 192.168.1.21:8081 进入私服管控台 2.1.在 sonatype-work\nexus3 下查看 admin.password 密码并 sign in 进行修改 (test password nexus) 3.在 Repository -> Repositories -> maven-central 下添加阿里仓库远程代理 https://maven.aliyun.com/nexus/content/groups/public/ 4.maven settings.xml 配置 <mirrors> <!-- 阿里云仓库 <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> --> <!-- 中央仓库1 <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo1.maven.org/maven2/</url> </mirror> --> <!-- 中央仓库2 <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> --> <mirror> <id>public</id> <mirrorOf>central</mirrorOf> <name>central repository</name> <url>http://192.168.1.21:8081/repository/maven-public/</url> </mirror> </mirrors> <profile> <id>nexusProfile</id> <repositories> <repository> <id>nexus</id> <name>nexus</name> <url>http://192.168.1.21:8081/repository/maven-central/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> <activeProfiles> <activeProfile>nexusProfile</activeProfile> </activeProfiles> <servers> <server> <id>releases</id> <username>admin</username> <password>nexus</password> </server> <server> <id>snapshots</id> <username>admin</username> <password>nexus</password> </server> </servers> 5.pom.xml 配置 <distributionManagement> <repository> <id>releases</id> <name>User Project RELEASES</name> <url>http://192.168.1.21:8081/repository/maven-releases/</url> </repository> <snapshotRepository> <id>snapshots</id> <name>User Project SNAPSHOTS</name> <url>http://192.168.1.21:8081/repository/maven-snapshots/</url> </snapshotRepository> </distributionManagement> 6.deploy 模块 7.在 Browse -> maven-releases 中查看发布的模块
内容总结
以上是互联网集市为您收集整理的nexus 3.17.0-01 windows安装及使用全部内容,希望文章能够帮你解决nexus 3.17.0-01 windows安装及使用所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。