How do I configure eclipse to automatically refresh a project as part of it's build?

拈花ヽ惹草 提交于 2020-01-01 08:14:10

问题


I have a maven plugin generating some code for eclipse to build, but I have to manually refresh the project before eclipse sees the code.

How can I make eclipse automatically refresh the project as part of the build?

I'm trying to use a custom builder, but it wants to run a command (which I don't need to do).


回答1:


You can make eclipse automatically refresh your whole workspace: Window->Preferences->General->Workspace and check "Refresh automatically"




回答2:


you can make it project/build specific for external builders under Project Properties->Build->Refresh Policy. Here is an example for C/C++ builds.




回答3:


Depending on how you run your Maven plugin, it may just refresh the project automatically. That is how it normally works in m2eclipse.

Also, you can configure a custom builder Project Properties / Builders / New... / Program and select some dummy command to run (e.g. C:\cygwin\bin\date.exe) and then configure project refresh settings.



来源:https://stackoverflow.com/questions/3943961/how-do-i-configure-eclipse-to-automatically-refresh-a-project-as-part-of-its-bu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!