Eclipse 部署程序集:找不到条目错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10888960/
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
Eclipse Deployment Assembly: Cannot find entry Errors
提问by Corwin01
I have a Web App I am working on in Eclipse Indigo. I've run into an error today, where my added projects under Deployment Assembly are showing errors saying "Cannot find entry: SystemsLib", but I can remove and readd the project just fine (but the error persists).
我有一个正在 Eclipse Indigo 中开发的 Web 应用程序。我今天遇到了一个错误,我在部署程序集下添加的项目显示错误,提示“找不到条目:SystemsLib”,但我可以很好地删除和读取项目(但错误仍然存在)。
Does anyone know what is causing this error?
有谁知道是什么导致了这个错误?
采纳答案by Corwin01
Ok, so I'm not sure why this happened, but a coworker of mine managed to fix it.
好的,所以我不确定为什么会发生这种情况,但是我的一个同事设法解决了这个问题。
Something in those libraries got changed, which was causing this. Deleting them and pulling them back down from SVN fixed it.
这些库中的某些内容发生了变化,从而导致了这种情况。删除它们并将它们从 SVN 中拉下来修复了它。
回答by sjngm
In my case I had to "Update Maven projects" with "Force Update of Snapshots/Releases" checked.
在我的情况下,我必须通过选中“强制更新快照/发布”来“更新 Maven 项目”。
回答by Stigz
Add the following to your .project file(s) at the xpath location /projectDescription/natures.
将以下内容添加到 xpath 位置 /projectDescription/natures 处的 .project 文件中。
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
Then restart eclipse.
然后重启eclipse。
For myself, I ran into this error after adding apply plugin: 'eclipse'
to my build.gradle file in a multi-project setup, then subsequently running:
对于我自己,apply plugin: 'eclipse'
在多项目设置中添加到我的 build.gradle 文件后,我遇到了这个错误,然后运行:
.\gradlew cleanEclipse
.\gradlew eclipse
I switched to apply plugin: 'eclipse-wtp'
and it added the eclipse nature (and a couple others) automatically.
我切换到apply plugin: 'eclipse-wtp'
它并自动添加了日食性质(和其他几个)。
Using Grade 4.8.1
使用 4.8.1 级
回答by Glenn Werner
Eclipse gives you the ability to exclude certain files or directories through resource filters. You might want to do this for directories containing a lot of files that aren't needed to run the project.
Eclipse 使您能够通过资源过滤器排除某些文件或目录。您可能希望对包含大量运行项目不需要的文件的目录执行此操作。
To solve a similar issue (Eclipse couldn't find my WebContent folder), I had to right-click on my project and go to Preferences -> Resource -> Resource Filters. My WebContent folder was being excluded for some reason. Try removing the exclude and you should see your directory again.
为了解决类似的问题(Eclipse 找不到我的 WebContent 文件夹),我必须右键单击我的项目并转到 Preferences -> Resource -> Resource Filters。由于某种原因,我的 WebContent 文件夹被排除在外。尝试删除排除项,您应该会再次看到您的目录。
Eclipse keeps this setting in the .project file if you want to take a look at it there.
如果您想在 .project 文件中查看它,Eclipse 会将此设置保留在 .project 文件中。