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

后端 未结 3 1891
后悔当初
后悔当初 2021-02-20 01:06

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 automati

相关标签:
3条回答
  • 2021-02-20 01:36

    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.

    0 讨论(0)
  • 2021-02-20 01:37

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

    0 讨论(0)
  • 2021-02-20 01:43

    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

    0 讨论(0)
提交回复
热议问题