Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1
-
None
-
maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
Description
java2wsdl goal of the codegen plugin does not throw an exception to stop the maven build on error.
Looking at the source code, it appears to just catch the exception, and if it's not an ant.ExitException, it doesn't rethrow it? It looks like it needs to throw a MOJOExecutionException to halt the maven build (I'm comparing it to what I see in the wsdl2java goal for the plugin, which does correctly stop the build on error)....
Here's an example, which does not break the maven build, as it should:
JavaToWSDL Error : Can not find or initialize the ServiceBuilder for style: Jaxws Reason:
org.apache.cxf.jaxws.JaxwsServiceBuilder
Maven continues happily along after this on it's merry way....
Other examples include if it can't find the source class, to build the wsdl from, etc....
Jason