【发布时间】:2016-09-23 05:12:23
【问题描述】:
我面临速度 jar 问题。作为依赖于 CXF 包的 eclipse 插件之一。 pom.xml中定义的jar依赖如下,
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>2.7.5</version>
</dependency>
另一个依赖于自定义 bundle jar 的 eclipse 插件,它有 pom.xml中定义的jar依赖如下,
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.7</version>
</dependency>
在运行时我遇到的问题是, 找不到 Velocity 模板文件:org/apache/cxf/tools/wsdlto/frontend/jaxws/template/build.vm
为了确定我运行命令的问题,
mvn 依赖:tree -Dverbose
这表明 maven 从 cxf 中省略了速度 jar,因为它在类路径中加载了另一个速度。
如何解决这个jar依赖?
【问题讨论】:
标签: maven eclipse-plugin