Eclipse问题:项目引用自身
我有一个小项目,由一个 Maven 项目和两个 Maven 模块组成。其中一个模块是一个 Web 应用程序,我使用 WTP 来运行我的所有 Web 应用程序。一切都很好,直到今天 web 应用程序开始拒绝编译,引用:
Project 'sdx.client' cannot reference itself
如果我从 .classpath
中删除以下行:
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
我的项目会再次编译。通过谷歌搜索,我相信这是一个 WTP 元素,但我不太确定它的作用以及为什么它认为它包含对包含它的项目的反射引用。非常欢迎关于在哪里寻找问题根源的建议。
更新
我还没有解决这个问题,但我确实通过删除该项目并从 svn 中再次检查它来使症状消失。所以它看起来像是某个地方的错误,但我不确定在哪里报告它或如何提出决策程序来确定何时修复它。
I have small project consisting of one maven project and two maven modules. One of the modules is a webapp, and I'm using WTP to run all my web applications. Everything has been fine, until today when when the webapp started refusing to compile, citing:
Project 'sdx.client' cannot reference itself
If I remove the following line from the .classpath
:
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
my project compiles again. From googling, I believe this is a WTP element, but I'm not really sure what it does and why it believes that it contains a reflexive reference to the project containing it. Suggestions for where to look to track down the source of the problem would be very welcome.
Update
I haven't solved the problem, but I did make the symptoms go away by deleting the project and checking it out again from svn. So it looks like a bug somewhere, but I'm not sure where to report it or how to propose a decision procedure to determine when it's fixed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,并找到了一种通过项目中的 .classpath 文件来修复它的方法:
此条目导致了问题:
与以前的版本相比,发现在之后缺少以下行:线。再次添加它使问题消失:
不知道如何解释它,但也许它对某人有帮助。
I had the same problem and found a way to fix it via the .classpath file in my project:
This entry was causing the problem:
Comparing with a previous version, it turned out the following line went missing, after the <attribute name=...> line. Adding it again made the problem go away:
Not sure how to explain it, but perhaps it helps somebody.
今年早些时候在 dev-eclipse 中有一个讨论:
http://dev.eclipse.org/newslists/news.eclipse。 webtools/msg18400.html
这表明这可能是一个错误。
There is a discussion earlier this year in dev-eclipse:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg18400.html
which suggests this may be a bug.