原文链接:https://my.oschina.net/kkrgwbj/blog/513211
复制私服链接,打开我们的pom.xml在里面添加:
<!-- nexus私服配置 -->
<repositories>
<repository>
<id>nexus</id>
<name>Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<!--snapshots默认是关闭的,需要开启 -->
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
这个时候,我们的私服就搭建好了.