Java 流程资源包maven错误calssnotfoundexception org.apache.commons.collections.ExtendedProperties
试图通过Java 流程资源包maven错误calssnotfoundexception org.apache.commons.collections.ExtendedProperties,java,maven,apache-camel,osgi,maven-plugin,Java,Maven,Apache Camel,Osgi,Maven Plugin,试图通过mvn包从camel构建一个示例 apache-camel-2.22.0/examples/camel-example-cdi-xml 得到一个以前从未见过的错误,我检查了可传递DEP的依赖关系树,apache collections是3.2.1,没有损坏,因此无法解释它,显然我知道它的意思,只是无法理解为什么会发生,因为提供了所有需要的内容: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-re
mvn包从camel构建一个示例
apache-camel-2.22.0/examples/camel-example-cdi-xml
得到一个以前从未见过的错误,我检查了可传递DEP的依赖关系树,apache collections是3.2.1,没有损坏,因此无法解释它,显然我知道它的意思,只是无法理解为什么会发生,因为提供了所有需要的内容:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project camel-example-cdi-xml: Execution process-resource-bundles of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process failed: A required class was missing while executing org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process: org/apache/commons/collections/ExtendedProperties
我真的不知道如何解决这个问题
我试着用几种不同版本的maven进行构建。JDK=1.8更新pom.xml添加以下代码
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.6.0</version>
<dependencies>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
maven远程资源插件
1.6.0
公地收藏
公地收藏
3.2.1
公地郎
公地郎
2.6
捆