注意 - 我可以在生成的包jar的MANIFEST文件中看到依赖项反映在Import-Package下。
代码清单1:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
<version>${camel-version}</version>
<!-- use the same version as your Camel core version -->
</dependency>
代码清单2:
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
答案 0 :(得分:0)
Servicemix有一个针对commons-httpclient的OSGi包装包,您可以尝试安装它而不是将其嵌入到包中吗?
mvn:org.apache.servicemix.bundles / org.apache.servicemix.bundles.commons-httpclient / 3.1_4