我有一个包含多个模块的 Maven 项目,但我只想将一个部署到我的远程存储库服务器。我试图将它放在distributionManagement
我要部署的模块的 pom 中,但它只能放在主 pom 中。我怎么能这样做?
谢谢你。
编辑:通过放置固定
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
到我不想部署的模块。