dependencyManagement标签中配置远程仓库
<dependencyManagement>
</dependencies>
</dependency>
......
</dependency>
</dependencies>
</dependencyManagement>
<repository>
<id>nexus-snapshots</id>
<url>http://xxxx:8080/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>nexus-releases</id>
<url>http://xxxx:8080/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
之后执行mvn clean deploy
即可