不需要在pom文件中配置,只需要在maven的conf文件中配置上镜像即可

<mirror>
      <id>nexus</id>
      <mirrorOf>central</mirrorOf>
      <name>internal nexus repository</name>
      <url>http://xxxx:8081/nexus/content/groups/public/</url> 
</mirror>

相关文章: