我正在使用 Maven 程序集插件使用以下配置将两个 jar 组合在一起:
<execution>
<id>Package jar with dependencies</id>
<phase>compile</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
我不希望使用程序集插件创建的 JAR 被部署,如何阻止它被部署?
最佳答案
您应该为程序集插件指定以下配置选项:
<configuration>
...
<attach>false</attach>
...
</configuration>
关于maven - 如何阻止 Maven 程序集插件部署它创建的 Artifact ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15530453/