【发布时间】:2020-04-09 19:29:53
【问题描述】:
我正在尝试使用 ServiceMix 和 ActiveMQ 运行 ESB 系统。但即使在我走到那一步之前,我也有一个关于 POM 依赖类型的问题。我得到了maven依赖:
<!-- https://mvnrepository.com/artifact/org.apache.servicemix/servicemix -->
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix</artifactId>
<version>7.0.1</version>
<type>pom</type>
</dependency>
现在,当我在包含此依赖项的项目上运行“全新安装”时,我没有看到任何 activeMQ jar 被复制到类路径中或可用于编译(我已经编写了复制依赖项,所以我可以看到包含哪些 jar 文件)。在这种情况下,我是否仍然需要在我的 pom 文件中明确提及 activeMQ 依赖项?喜欢:
<!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-core -->
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
</dependency>
任何指导将不胜感激。这个 ServiceMix 因缺少文档而令人沮丧。
【问题讨论】:
-
我看了那个答案和其他一些类似的答案。我确实在我的父项目中包含
dependencyManagement下的依赖项,并尝试在我的子模块中使用import范围,但我收到错误org.apache.servicemix:servicemix:pom must be one of [provided, compile, runtime, test, system] but is 'import'.所以该解决方案没有帮助