前段时间更新了Eclipse的maven插件,原来安装的是m2eclipse插件,后来更新成了m2e插件。结果在运行以前的maven工程时报错:
Referenced classpath provider does not exist: org.maven.ide.eclipse.launchconfig.classpathProvider
截图如下:
引起这个错误的原因主要是新的m2e插件的namespace已经修改了,而之前的工程的启动配置依然指向旧插件的名称。我们可以在Eclipse workspace下查看类的.launch文件,具体路径为:
\workspace\.metadata\.plugins\org.eclipse.debug.core\.launches
找到对应的类的.launch文件,使用文本编辑器打开后里面的内容应该类似如下:
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.classpathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.sourcepathProvider"/>
实际上正确的配置应该是:
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
所以就能印证我们之前的猜测,maven插件的namespace从 org.maven.ide.eclipse 修改成了org.eclipse.m2e 从而导致了这个问题的产生。
对于这个问题,最简单的解决方案就是在IDE(Eclipse)里右键选中工程,然后选择Configure -> Convert to Maven Project ,这样操作完以后,修复了损坏的launch configuration,启动就正常了。
相关推荐
MQTTv5版的客户端库,原地址:...本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的问题。
The archive: referenced by the classpath, does not exist.
一、疑难杂症 def test_scopt(): ...上面这两种情况都会报错:UnboundLocalError: local variable ‘x’ referenced before assignment 二、探究原因 1、python变量作用域 一般在使用函数def、类cla
dubbo.
Could not find class 'com.sun.crypto.provider.SunJCE', referenced from method ...不能加载到类的情况
dubbo找不到dubbo.xsd报错, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document...
在android上导入zxing.jar包,总是报错: Could not find class ‘com.google.zxing.MultiFormatWriter’, referenced from method com.changyang.app.util.Encode2dUtil.creat2DCode 后来找到了解决方法: 在adt17 ...
Note about "Property does not exist" errors: Since all demos were developed with the latest version of Delphi, most of the demo forms probably contains references to properties that doesn't exist in ...
支持android4.2-4.4,其他未知 博文链接:https://gundumw100.iteye.com/blog/2262622
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
Export file for package 'org.mifare4mobile.hostinterface' is generated with AID: 0xA0:0x0:0x0:0x3:0x96:0x4D:0x34:0x4D:0x30 Version: 2.2 Set of documents referenced in this package: 昜VC Creation] ...
数字控制的无桥功率因数校正(BL-PFC)控制源代码,基于TI x28系列dsp。
Referenced Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a type > ★NameValuePair cannot be resolved to a type > ★...
Eclipse导入jar包不能自动归类到ReferenceLibraries下问题解决
on domain object referenced by context variable "obj". In this attribute, both domain object and permission specifications are considered to be thymeleaf Standard Expressions. Namespace The ...
Windows.PowerShell.Pocket.ReferenceD.Lee.Holmes.文字版
Start Borland Developer Studio 2006 IDE (do not start C++ Builder, even if you want to install it only for BCB 2006. AutoUpgrader should be installed for entire BDS 2006 anyway). 4. Open ...
id INT(11) PRIMARY KEY NOT NULL COMMENT '自增主键' AUTO_INCREMENT, <strong>taskname</strong> VARCHAR(200) NOT NULL COMMENT '任务名字', sqlname VARCHAR(20) NOT NULL COMMENT 'sql文件名字', params ...
开发环境 Eclipse 、Android 生成APK 提示 : Could not find class 'com.xxx.xxx.xxx.jar' referenced from method com.eamp 解决方法