Maven:如何引用 *-bin.zip?
Maven: how do I reference a *-bin.zip?
我正在尝试通过 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>
-bin
被称为"classifier"。分类器允许使用 "same" 名称的多个工件。
您想将 <classifier>bin</classifier>
添加到您的依赖项或 artifactItem 以便引用它,而不是将其放入版本中。
参见 Dependencies section in the Maven POM Reference 的 "classifier" 部分。
我正在尝试通过 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>
-bin
被称为"classifier"。分类器允许使用 "same" 名称的多个工件。
您想将 <classifier>bin</classifier>
添加到您的依赖项或 artifactItem 以便引用它,而不是将其放入版本中。
参见 Dependencies section in the Maven POM Reference 的 "classifier" 部分。