在项目的pom.xml里面添加
<repositories>
<repository>
<id>releases</id>
<url>http://192.168.9.16:8000/nexus/content/repositories/releases
</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>thirdparty</id>
<url>http://192.168.9.16:8000/nexus/content/repositories/thirdparty
</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>repository.jboss.org-public</id>
<name>JBoss.org Maven repository</name>
<url>https://repository.jboss.org/nexus/content/groups/public</url>
</repository>
<repository>
<id>mvnrepository</id>
<url>http://maven.oschina.net/content/groups/public/</url>
</repository>
</repositories>