我们的项目继承了一个父POM中的Nexus Staging Maven插件,但我们无法控制它。我在根POM中配置了禁用Nexus Staging Maven插件的选项,但这个配置似乎也禁用了默认的部署执行。请注意,HTML标签已被保留。
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>url</nexusUrl>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
我在根POM中定义了Maven Deploy插件,但似乎这个插件没有启动。
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
我不知道如何用maven deploy插件替换继承的nexus staging maven插件。非常感谢任何帮助。