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
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.
You can make eclipse automatically refresh your whole workspace: Window->Preferences->General->Workspace and check "Refresh automatically"
you can make it project/build specific for external builders under Project Properties->Build->Refresh Policy. Here is an example for C/C++ builds.