java - 我怎样才能只将特定模块部署到我的远程存储库?
问题描述
我有一个包含多个模块的 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>
到我不想部署的模块。
解决方案
使这个模块成为一个独立的项目。从其 pom 文件中删除父部分。
推荐阅读
- regex - 获取二进制矩阵的列表格式
- python - 下面的代码有什么区别?
- python - 如何以一定的概率获得 5 个随机数?
- python - 如何在opencv中使某些像素透明?
- django-forms - Django ModelForm 没有正确摄取派生的表单数据
- android - 原因:java.lang.ClassNotFoundException:找不到类“com.google.android.gms.common.GoogleApiAvailability”
- flutter - Dart 分析服务器终止并失去与设备的连接
- android - 如何使用 Android R8 为远程 aar 文件保留类名和方法名?
- c# - EF Core 避免重复地址
- angular - 在 MatTable 中自动关闭下拉菜单