1、需要在pom.xml 中配置mavne的私有服务器地址
<distributionManagement>
<repository>
<id>sms-releases</id>
<name>sms-releases</name>
<url>http://192.168.2.111:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>sms-snapshots</id>
<name>sms-snapshots</name>
<url>http://192.168.2.111:8081/repository/maven-snapshots/</url>
</snapshotRepository>
<site>
<id>sms-releases</id>
<name>Nexus Sites</name>
<url>dav:http://192.168.2.111:8081/repository/maven-releases/</url>
</site>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
2、本地的操作
3、服务器的操作