(Eclipse) 构建项目时挂起:将资源复制到输出文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4686364/
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) Hangs when building project: copying resources to output folder
提问by mtyson
This has been happening intermittently, but now its consistent.
这一直在间歇性地发生,但现在它是一致的。
When I go to build the project, eclipse just hangs forever at this step:
当我去构建项目时,eclipse 只是在这一步永远挂起:
copying resources to output folder
将资源复制到输出文件夹
I saw a suggestion to remove all non-java resources from the project and put them back in one at a time, but that is impractical for the size of this project.
我看到了从项目中删除所有非 Java 资源并将它们一次放回一个的建议,但这对于该项目的规模来说是不切实际的。
采纳答案by mtyson
I ended up using a new workspace. A new eclipse instance didn't fix it. A new workspace and the old eclipse worked fine.
我最终使用了一个新的工作区。一个新的 eclipse 实例没有修复它。一个新的工作区和旧的 eclipse 工作正常。
回答by BeeGee
I was able to resolve this by using the following steps:
我能够通过使用以下步骤解决这个问题:
1) Closing eclipse - In case it does not close - Kill the process 2) Manually delete everything in the output folder 3) Start eclipse with -clean option -> eclipse.exe -clean
1) 关闭 eclipse - 如果它没有关闭 - 终止进程 2) 手动删除输出文件夹中的所有内容 3) 使用 -clean 选项启动 eclipse -> eclipse.exe -clean
Hope this helps!
希望这可以帮助!
回答by Tim Kuipers
I just had the same problem, but now I've solved it.
我刚刚遇到了同样的问题,但现在我已经解决了。
The cause was not one really large file, but a lot of small files adding up to a large total.
原因不是一个真正的大文件,而是许多小文件加起来很大。
For me it was not a problem to move these files, since in hindsight they didn't really belong there anyway.
对我来说,移动这些文件不是问题,因为事后看来它们并不真正属于那里。