java.lang.NoSuchMethodError: org.codehaus.plexus.util.DirectoryScanner.setupMatchPatterns()解决办法

原创 2016年08月28日 15:34:15

Description Resource Path Location Type

Execution m2e-tycho:default-bundle:manifest of goal org.apache.felix:maven-bundle-plugin:3.0.1:manifest failed: An API incompatibility was encountered while executing org.apache.felix:maven-bundle-plugin:3.0.1:manifest: java.lang.NoSuchMethodError: org.codehaus.plexus.util.DirectoryScanner.setupMatchPatterns()V

realm = plugin>org.apache.felix:maven-bundle-plugin:3.0.1
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/F:/env/m2/repository/org/apache/felix/maven-bundle-plugin/3.0.1/maven-bundle-plugin-3.0.1.jar
urls[1] = file:/F:/env/m2/repository/org/osgi/org.osgi.core/4.3.1/org.osgi.core-4.3.1.jar
urls[2] = file:/F:/env/m2/repository/biz/aQute/bnd/biz.aQute.bndlib/3.0.0/biz.aQute.bndlib-3.0.0.jar
urls[3] = file:/F:/env/m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar
urls[4] = file:/F:/env/m2/repository/org/easymock/easymock/2.5.2/easymock-2.5.2.jar
urls[5] = file:/F:/env/m2/repository/org/apache/felix/org.apache.felix.utils/1.6.0/org.apache.felix.utils-1.6.0.jar
urls[6] = file:/F:/env/m2/repository/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar
urls[7] = file:/F:/env/m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
urls[8] = file:/F:/env/m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
urls[9] = file:/F:/env/m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
urls[10] = file:/F:/env/m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.0/maven-reporting-api-2.2.0.jar
urls[11] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
urls[12] = file:/F:/env/m2/repository/junit/junit/4.11/junit-4.11.jar
urls[13] = file:/F:/env/m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
urls[14] = file:/F:/env/m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
urls[15] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[16] = file:/F:/env/m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[17] = file:/F:/env/m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[18] = file:/F:/env/m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[19] = file:/F:/env/m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
urls[20] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-archiver/2.1/plexus-archiver-2.1.jar
urls[21] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-io/2.0.2/plexus-io-2.0.2.jar
urls[22] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
urls[23] = file:/F:/env/m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
urls[24] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[25] = file:/F:/env/m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
urls[26] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
urls[27] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
urls[28] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
urls[29] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
urls[30] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[31] = file:/F:/env/m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
urls[32] = file:/F:/env/m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
urls[33] = file:/F:/env/m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
urls[34] = file:/F:/env/m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[35] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
urls[36] = file:/F:/env/m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
urls[37] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
urls[38] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
urls[39] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
urls[40] = file:/F:/env/m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
urls[41] = file:/F:/env/m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar
Number of foreign imports: 4
import: Entry[import org.sonatype.plexus.build.incremental from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.AbstractScanner from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import from realm ClassRealm[project>com.gbits.websns:kernelsdk:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]


(org.apache.felix:maven-bundle-plugin:3.0.1:bundle:default-bundle:package) pom.xml /kernelsdk line 243 Maven Build Problem

在pom.xml里加上

org.apache.felix
maven-bundle-plugin
3.2.0

版权声明:本文为博主原创文章,未经博主允许不得转载。

Plexus,Spring之外的IoC容器

Plexus是什么?它是一个IoC容器,由codehaus在管理的一个开源项目。和Spring框架不同,它并不是一个完整的,拥有各种组件的大型框架,仅仅是一个纯粹的IoC容器。本文讲解Plexus的初...
  • huxin1
  • huxin1
  • 2010年11月19日 10:14
  • 4509

Plexus——Spring之外的IoC容器

Plexus是什么?它是一个IoC容器,由codehaus在管理的一个开源项目。和Spring框架不同,它并不是一个完整的,拥有各种组件的大型框架,仅仅是一个纯粹的IoC容器。本文讲解Plexus的初...
  • songhuiqiao
  • songhuiqiao
  • 2015年11月18日 15:47
  • 1418

Maven构建错误汇总

Maven构建错误汇总 工具/原料 springmvc freemarker mybatis spring eclipse maven 问题:The met...
  • qq897958555
  • qq897958555
  • 2016年12月26日 19:39
  • 82

Maven--java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException

java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException 问题的解决...
  • frankcheng5143
  • frankcheng5143
  • 2016年03月25日 14:50
  • 7396

maven项目的org/codehaus/plexus/util/scanner问题

一个maven项目很久没跑了,部署到服务器可以跑起来,但是对项目运行maven test操作时,一直报maven-resources-plugin插件一直找不到  org/codehaus/p...
  • hongbinhushisheng
  • hongbinhushisheng
  • 2015年01月26日 16:50
  • 1225

maven java.lang.NoClassDefFoundError: org/codehaus/plexus/util/DirectoryScanner

org/codehaus/plexus/util/DirectoryScanner在反复搜索无果之后,我将本来的repository plexus-utils 进行了清空/home/lee/.m2/r...
  • FireCoder
  • FireCoder
  • 2010年12月24日 21:46
  • 6107

JAVA常见问题解决办法汇总

1.java.lang.NullPointerException        原因是:有空指针,有地址没赋值 2.Exception in thread "main" java.lang.Ari...
  • shengmingqijiquan
  • shengmingqijiquan
  • 2016年04月17日 22:33
  • 23342

MyBatis与Spring集成示例

本示例将使用MyBatis与Spring集成的方式改写上篇博文的工程。为此,应将工程用到的相关jar包复制到工程的lib目录中。读者可在本文下方的“附件下载”处下载本示例的工程,因此在这里就不详述要用...
  • nai598455803
  • nai598455803
  • 2014年03月21日 09:44
  • 847

注意Hibernate4在开发当中的一些改变

Hibernate4的改动较大只有spring3.1以上版本能够支持,Spring3.1取消了HibernateTemplate,因为Hibernate4的事务管理已经很好了,不用Spring再扩展了...
  • selaginella
  • selaginella
  • 2013年04月14日 12:34
  • 7173

注意Hibernate4在开发当中的一些改变

注意Hibernate4在开发当中的一些改变 Hibernate4的改动较大只有spring3.1以上版本能够支持,Spring3.1取消了HibernateTemplate,因为Hiberna...
  • houpengfei111
  • houpengfei111
  • 2013年07月25日 14:15
  • 11669
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:java.lang.NoSuchMethodError: org.codehaus.plexus.util.DirectoryScanner.setupMatchPatterns()解决办法
举报原因:
原因补充:

(最多只允许输入30个字)