I'm trying to remove Junit from the build path a (plugin) project in Eclipse(I've refactored the tests into a separate Project.

Should be simple, but the remove button is greyed out for me:

enter image description here

Am I missing something obvious?

有帮助吗?

解决方案

If this is a Plugin project, you should maintain the build path via the manifest editor for the plugin (the same editor manipulates both manifest.mf and plugin.xml). That's where you declare the dependencies that the plugin has, which in turn automatically maintains the build path. There are a couple of ways of expressing a dependency, either as a Required Plug-in or as an Imported Package.

enter image description here

or

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top