在settings.xml中添加以下内容。
<profiles> <profile> <id>nexus</id> <repositories> <repository> <id>kxcomm-maven</id> <url>http://122.13.0.56:8088/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles>