eclipse-ee4j / metro-jax-ws

metro-jax-ws
https://eclipse-ee4j.github.io/metro-jax-ws/
BSD 3-Clause "New" or "Revised" License
68 stars 40 forks source link

Perform refresh in Eclipse after M2E execution of jaxws-maven-plugin #656

Closed bukkfrig closed 8 months ago

bukkfrig commented 11 months ago

Eclipse M2E lifecycle-mapping metadata xml for jaxws-maven-plugin was added already (issue #176, pull request #200).

However, according to the M2E documentation, plugins that generate code should also inject and use the BuildContext to check for modifications before generating code, and perform a refresh after generating code.

Currently when M2E executes the plugin, Eclipse displays "problems" relating to missing classes, and we need to refresh the source folder manually before Eclipse compiles the classes from generated source files.

Could somebody please add the code? I'm not confident enough to contribute the fix myself.