pom中配置
<distributionManagement>
<repository>
<id>xxx</id>
<url>http://192.168.111.234:8081/nexus/content/repositories/xxx-snapshot</url>
<uniqueVersion>true</uniqueVersion>
</repository>
<snapshotRepository>
<id>xxx</id>
<url>http://192.168.111.234:8081/nexus/content/repositories/xxx-snapshot</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
</distributionManagement>
settings中配置
<server>
<id>xxx-snapshot</id>
<username>xxx</username>
<password>xxx</password>
</server>