这是feature.xml,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" name="xxxx">
<feature name="xxxx" description="xxxxx[Karaf Feature]" version="0.1.0.SNAPSHOT">
<details>xxxxxx</details>
<bundle>mvn:org.hibernate.validator/hibernate-validator/6.0.13.Final</bundle>
<bundle>mvn:org.jboss.logging/jboss-logging/3.3.2.Final</bundle>
<bundle>mvn:com.fasterxml/classmate/1.3.4</bundle>
<bundle>mvn:javax.validation/validation-api/2.0.1.Final</bundle>
</feature>
</features>
如我们所见,它只有四个捆绑软件,但是当我使用'feature:install -v'安装此功能时,它显示正在安装更多捆绑软件:
Adding features: xxxxxxx/[0.1.0.SNAPSHOT,0.1.0.SNAPSHOT]
Changes to perform:
Region: root
Bundles to install:
mvn:com.fasterxml/classmate/1.3.4
mvn:javax.validation/validation-api/2.0.1.Final
mvn:org.eclipse.jetty/jetty-http/9.4.12.v20180830
mvn:org.eclipse.jetty/jetty-http/9.4.12.v20180830
mvn:org.eclipse.jetty.websocket/websocket-common/9.4.12.v20180830
mvn:org.hibernate.validator/hibernate-validator/6.0.13.Final
mvn:org.jboss.logging/jboss-logging/3.3.2.Final
Stopping bundles:
如何包含“ jetty-http”和“ websocket-common”?结果,许多捆绑包被刷新,最终导致同一类上出现“ java.lang.ClassCastException”。
寻求帮助。