文章正文

使用nexus搭建maven私服

【文档】2020-04-23

简介使用nexus搭建maven私服

地址: http://www.sonatype.org/nexus/go,nexus-2.11.2-06-bundle.tar.gz


启动nexus

$ tar xzvf nexus-2.11.2-06-bundle.tar.gz
$ cd bin/
$ ls
jsw  nexus  nexus.bat
$ ./nexus
Usage: ./nexus { console | start | stop | restart | status | dump }
$ ./nexus start
Starting Nexus OSS...
Started Nexus OSS.
#查看控制台:
$ ./nexus console
Running Nexus OSS...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
#查看nexus日志:
$ cd nexus-2.4.0-09/logs
$ ls
wrapper.log
$ tail -f wrapper.log

配置nexus

访问网址: http://yourhostname:8081/nexus

默认用户名/密码:admin/admin123。


3rd party、Snapshots、Releases这三个,分别用来保存第三方jar、项目组内部的快照、项目组内部的发布版.

手动添加第三方jar

将第三方的jar上传到nexus上面,点击Upload Artifact(s)按钮提交后即上传。


setting.xml文件中配置:

<mirror>
<id>public</id>
<mirrorOf>*</mirrorOf>
<url>http://192.168.80.134:8081/nexus/content/groups/public/</url>
</mirror>

打赏支持

感谢您的支持,加油!

打开微信扫码打赏,你说多少就多少

找书费时,联系客服快速获取!

扫码支持

在线客服8:30-22:30,若离线请留言!

获取教程,请联系在线客服!

扫码支持

在线客服8:30-22:30,若离线请留言!

热门阅读

找PDF电子书,太费时间?

  • 微信扫描二维码,让客服快速查找。
  • 在线客服8:30-22:00,若离线请留言!