如何在 Eclipse 中更改引用的类提供程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4094439/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:43:25  来源:igfitidea点击:

How to change a referenced classprovider in Eclipse?

eclipseconfigurationlaunch

提问by user496547

I uninstalled the maven plugin but when trying to run the project that was perfectly running before the plugin I have "Referenced classpath provider does not exist: org.maven.ide.eclipse.launchconfig.classpathprovider". I assume I have to change the launch configuration for the project. Can anyone provide the steps to do so? Thank you.

我卸载了 maven 插件,但是在尝试运行在插件之前完美运行的项目时,我有“引用的类路径提供程序不存在:org.maven.ide.eclipse.launchconfig.classpathprovider”。我假设我必须更改项目的启动配置。任何人都可以提供这样做的步骤吗?谢谢你。

回答by hithwen

This helped me http://sha.nnoncarey.com/blog/archives/33

这对我有帮助http://sha.nnoncarey.com/blog/archives/33

If you get this error when launching a Run Configuration in Eclipse with the IAM (Maven) >plugin:

Referenced classpath provider does not exist: >org.maven.ide.eclipse.launchconfig.classpathProvider

It's probably because your Run Configuration was created on an old project, and has bad >entries in the Classpath section. The solution is to delete the Run Configuration and create >a new one.

如果您在使用 IAM (Maven) > 插件在 Eclipse 中启动运行配置时收到此错误:

引用的类路径提供者不存在:>org.maven.ide.eclipse.launchconfig.classpathProvider

这可能是因为您的运行配置是在旧项目上创建的,并且在 Classpath 部分中有错误的 > 条目。解决方案是删除运行配置并创建一个新配置。

回答by Raghuram

The project could be having old/incorrect settings. Assuming it is a maven project, one possibility is you could regenerate the Eclipse settings for the project by

该项目可能有旧的/不正确的设置。假设它是一个 Maven 项目,一种可能性是您可以通过以下方式重新生成项目的 Eclipse 设置

mvn eclipse:clean eclipse:eclipse

mvn eclipse:clean eclipse:eclipse

回答by user496547

This link helped me: http://osdir.com/ml/web.webobjects.woproject.devel/2005-09/msg00090.html

这个链接对我有帮助:http: //osdir.com/ml/web.webobjects.woproject.devel/2005-09/msg00090.html

I commented out string with CLASSPATH_PROVIDER.

我用 CLASSPATH_PROVIDER 注释掉了字符串。