Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-911

java2wsdl goal of the codegen plugin does not throw an exception to stop the maven build on error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.0.2
    • Build system
    • 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

      Attachments

        Activity

          People

            maomaode maomaode
            jbrosenberg Jason Rosenberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: