m2e does not remove custom classpath entries during project build (clean or otherwise). So unless you are doing project configuration updated, something else is removing generated sources folder from build path. Btw, starting with 1.1 M3 m2e will never remove custom classpath entries as per [1], so you can try that version to see if the problem goes away.
As already mentioned by Matt, to get proper code generation behaviour during incremental build, i.e. sources get automatically regenerated whenever you change model files (WSDL and schema in you case), you need to have a project configurator specific to your maven plugin. Alternatively, in 1.1 we are also making it possible for maven plugin developers to make their code work with directly m2e, thus eliminating the need for the project configurator. You can read more about this in [2] and we welcome feedback on this new feature. [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=353266 [2] http://wiki.eclipse.org/M2E_compatible_maven_plugins -- Regard, Igor On 11-10-20 8:17 AM, Steve Cohen wrote:
I am working on a top-down web service project that relies on code generation, using the jboss ws plugin's wsconsume. There are many iterations of WSDL and schema yet to come as I develop this. An irritation here is that whenever something goes wrong and the code generation fails for whatever reason, the generated code directory may not exist at the end of the failed process, particularly after a clean. At this point eclipse very "helpfully" removes the generated code folder from the build path. I would rather that it left the build path as is and simply failed the compile, rather than making me go back and edit the build path every time this happens. Is there a way to configure things so that it happens this way? _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
