eclipse 为什么我会收到警告:“build.properties 不存在”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1226642/
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
Why do I get a warning: "build.properties does not exist"
提问by Bloat
This appears to be something to do with the Plugin Development Environment, but I'm not writing an Eclipse Plugin.
这似乎与插件开发环境有关,但我不是在编写 Eclipse 插件。
How can I stop getting this warning?
我怎样才能停止收到此警告?
Thanks a lot!
非常感谢!
采纳答案by Andrew Niefer
If you are not writing a plug-in, then you can edit the .project file and remove the Plugin Nature, and perhaps also the api tools nature if it is there.
如果您不是在编写插件,那么您可以编辑 .project 文件并删除 Plugin Nature,如果有的话,也可以删除 api 工具。
<projectDescription>
...
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>
回答by user2081279
Thanks for this tip! Removing th whole .metadata folder deletes a lot of personal configuration, but deleting .metadata/.plugins/org.eclipse.core.resources/.projects/_your_project_name_ is sufficient.
感谢您的提示!删除整个 .metadata 文件夹会删除很多个人配置,但删除 .metadata/.plugins/org.eclipse.core.resources/.projects/_your_project_name_ 就足够了。
回答by VonC
Is this a simple Java project? And what version of eclipse (and plugins) are you using?
Because for an EMF project (model), the build.properties won't exist until we generate the model (as mentioned here).
这是一个简单的Java项目吗?您使用的是什么版本的 Eclipse(和插件)?
因为对于 EMF 项目(模型),在我们生成模型之前 build.properties 不会存在(如此处提到)。
Otherwise, try a full refresh of the project, and/or check if you have a file referencing a build.properties files within your project.
否则,尝试完全刷新项目,和/或检查您的项目中是否有引用 build.properties 文件的文件。
回答by Christian
I had the same error, but non of the other solutions worked for me. I'm using eclipse 4.3 and I had to remove the .metadata folder. After reloading the project the warning was gone.
我有同样的错误,但其他解决方案都不适合我。我正在使用 eclipse 4.3,我不得不删除 .metadata 文件夹。重新加载项目后,警告消失了。
回答by STLxZEROx
Deleting .metadata/.plugins/org.eclipse.core.resources/.projects/_your_project_name_ also worked for me. I had to restart my IDE (Eclipse) for me to see the changes. Rebuilding and refreshing did not reflect the changes.
删除 .metadata/.plugins/org.eclipse.core.resources/.projects/_your_project_name_ 也对我有用。我必须重新启动我的 IDE (Eclipse) 才能看到更改。重建和刷新没有反映变化。
回答by Martin Rust
For my case, none of the above proposals helped. But the actual solution was surprisingly simple: in the Problems view, open the warning's context menu (right-click) and select "Delete". Confirm the standard warning that pops up, and the warning was gone, and did not re-appear again after even after "clean" and build.
就我而言,上述建议都没有帮助。但实际的解决方案出奇地简单:在问题视图中,打开警告的上下文菜单(右键单击)并选择“删除”。确认弹出的标准警告,警告消失了,即使“清理”并构建后也没有再次出现。