Maven:我如何引用* -bin.zip?

时间:2016-07-06 19:32:49

标签: maven activemq

我试图通过maven-dependency-plugin获取以下apache-activemq文件:

https://repo1.maven.org/maven2/org/apache/activemq/apache-activemq/5.13.2/

但它以-bin.zip结尾。我需要添加什么来正确引用它?我对此工件的maven-dependency-plugin条目如下:

<artifactItem> <groupId>org.apache.activemq</groupId> <artifactId>apache-activemq</artifactId> <version>${activemq-install.version}-bin</version> <type>zip</type> <outputDirectory>${assembly.folder}</outputDirectory> </artifactItem>

1 个答案:

答案 0 :(得分:1)

-bin被称为“分类器”。分类器允许具有“相同”名称的多个工件。

您希望将<classifier>bin</classifier>添加到您的依赖项或artifactItem以便引用它,而不是将其放入版本中。

请参阅Dependencies section in the Maven POM Reference的“分类器”部分。