简体   繁体   English

由于“构建路径pr0blem”,Eclipse无法构建项目,但是源文件夹确实存在

[英]Eclipse wouldn't build project because of a “build path pr0blem”, but the source folder does exist

This has been happening more and more often to us. 这对我们来说越来越频繁。 There is a source folder in our project. 我们的项目中有一个源文件夹。 Frequently eclipse would insist that it can't build the project even though: eclipse通常会坚持即使以下情况也无法构建项目:

  • the folder exists, 该文件夹存在,
  • the permissions allow for read/write, 权限允许读/写,
  • eclipse actually displays the folder in the "Package Explorer" view! eclipse实际上在“ Package Explorer”视图中显示该文件夹!

屏幕截图

There are no relevant entries in workspace log, nor in the console. 工作空间日志或控制台中都没有相关条目。 We have no good solution for this, it usually involves doing the following multiple times: 我们对此没有好的解决方案,它通常涉及多次执行以下操作:

  • refresh project 刷新项目
  • close/open project 关闭/打开项目
  • clean project 清洁项目
  • restart eclipse (with -clean) 重新启动Eclipse(使用-clean)

It takes 20 minutes or so each time it happens. 每次大约需要20分钟。

My Eclipse is one of recent Kepler builds (4.3.2), running on Ubuntu 12.04 LTS. My Eclipse是Kepler的最新版本(4.3.2)之一,可在Ubuntu 12.04 LTS上运行。

Installed plugins: 已安装的插件:

  Atlassian Connector for Eclipse   3.2.2.v20130909 com.atlassian.connector.eclipse.feature.group   Atlassian
  Cucumber Eclipse Feature  0.0.11.201406031952 cucumber.eclipse.feature.feature.group  null
  EclEmma Java Code Coverage    2.3.1.201405111647  com.mountainminds.eclemma.feature.feature.group Mountainminds GmbH & Co. KG
  Eclipse SDK   4.3.2.M20140221-1700    org.eclipse.sdk.ide null
  Eclipse XML Editors and Tools 3.5.2.v201401062113-7H7IFizDxumVu0K6bjdPjXRkoz0FiUYMnSyT9PL org.eclipse.wst.xml_ui.feature.feature.group    Eclipse Web Tools Platform
  JD-Eclipse Plug-in    0.1.5   jd.ide.eclipse.feature.feature.group    Java Decompiler
  MoreUnit For Java 3.0.4   org.moreunit.feature.group  MoreUnit.org
  MoreUnit For Java: Mock Support   3.0.4   org.moreunit.mock.feature.group MoreUnit.org
  Mylyn Builds Connector: Hudson/Jenkins    1.1.2.v20140211-0100    org.eclipse.mylyn.hudson.feature.group  Eclipse Mylyn
  Mylyn Context Connector: Eclipse IDE  3.9.2.v20140211-0100    org.eclipse.mylyn.ide_feature.feature.group Eclipse Mylyn
  Mylyn Context Connector: Java Development 3.9.2.v20140211-0100    org.eclipse.mylyn.java_feature.feature.group    Eclipse Mylyn
  Mylyn Context Connector: Team Support 3.9.2.v20140211-0100    org.eclipse.mylyn.team_feature.feature.group    Eclipse Mylyn
  Mylyn Task List   3.9.2.v20140211-0100    org.eclipse.mylyn_feature.feature.group Eclipse Mylyn
  Mylyn Task-Focused Interface  3.9.2.v20140211-0100    org.eclipse.mylyn.context_feature.feature.group Eclipse Mylyn
  Mylyn WikiText    1.8.2.v20140211-0100    org.eclipse.mylyn.wikitext_feature.feature.group    Eclipse Mylyn
  Native JavaHL 1.8 Implementation (Optional)   3.0.5.I20140122-1700    org.polarion.eclipse.team.svn.connector.javahl18.feature.group  Polarion Software
  SonarQube Java Analyser   3.4.0.20140404-0949-RELEASE org.sonar.ide.eclipse.jdt.feature.feature.group SonarSource
  Subversive Revision Graph (Optional)  1.1.0.I20130619-1700    org.eclipse.team.svn.revision.graph.feature.group   Eclipse.org
  Subversive SVN Integration for the Mylyn Project (Optional)   1.1.2.I20131116-1700    org.eclipse.team.svn.mylyn.feature.group    Eclipse.org
  Subversive SVN JDT Ignore Extensions (Optional)   1.1.0.I20130619-1700    org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group    Eclipse.org
  Subversive SVN Team Provider  1.1.3.I20140206-1700    org.eclipse.team.svn.feature.group  Eclipse.org

Is there some known solution for this? 是否有一些已知的解决方案? Should I file a bug for eclipse? 我应该提交日食漏洞吗?

So far the best workaround seems to be: 到目前为止,最好的解决方法似乎是:

  • delete problematic entry from eclipse build path dialog, 从Eclipse构建路径对话框中删除有问题的条目,
  • restart eclipse 重新开始蚀
  • close project 结束专案
  • revert .classpath file 还原.classpath文件
  • open project 公开项目
  • clean and auto build 清理并自动构建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM