How do I configure eclipse to automatically refres

2019-04-04 14:36发布

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).

3条回答
相关推荐>>
2楼-- · 2019-04-04 15:27

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.

查看更多
该账号已被封号
3楼-- · 2019-04-04 15:41

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

查看更多
smile是对你的礼貌
4楼-- · 2019-04-04 15:41

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

enter code here

查看更多
登录 后发表回答