Eclipse不会因为"构建路径pr0blem"而构建项目,但源文件夹确实存在

时间:2014-07-02 11:18:42

标签: java eclipse

这种情况越来越多地发生在我们身上。 我们的项目中有一个源文件夹。 eclipse常常会坚持认为它无法构建项目,即使:

  • 文件夹存在,
  • 权限允许读/写,
  • eclipse实际上在“Package Explorer”视图中显示该文件夹!

screenshot

工作区日志中和控制台中没有相关条目。 我们没有这方面的好解决方案,通常涉及多次执行以下操作:

  • 刷新项目
  • 关闭/打开项目
  • 清洁项目
  • 重启eclipse(使用-clean)

每次发生都需要20分钟左右。

我的Eclipse是最近的Kepler版本之一(4.3.2),在Ubuntu 12.04 LTS上运行。

已安装的插件:

  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

是否有一些已知的解决方案?我应该为日食提出错误吗?

1 个答案:

答案 0 :(得分:0)

到目前为止,最好的解决方法似乎是:

  • 从eclipse构建路径对话框中删除有问题的条目,
  • 重启eclipse
  • 关闭项目
  • 还原.classpath文件
  • 打开项目
  • 清理并自动构建