如下图将 Deployment policy 设置为 Allow Redeploy
-------------------
另,自动部署到nexus:
在项目pom.xml中添加
<distributionManagement>
<repository>
<id>thirdparty</id>
<url>http://nexusIP地址:8081/nexus/content/repositories/thirdparty</url>
</repository>
</distributionManagement>
其中 thirdparty 为.xml 中配置的服务器ID