You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "maomaode (JIRA)" <ji...@apache.org> on 2007/08/20 04:59:30 UTC

[jira] Resolved: (CXF-911) java2wsdl goal of the codegen plugin does not throw an exception to stop the maven build on error

     [ https://issues.apache.org/jira/browse/CXF-911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode resolved CXF-911.
--------------------------

    Resolution: Fixed

> java2wsdl goal of the codegen plugin does not throw an exception to stop the maven build on error
> -------------------------------------------------------------------------------------------------
>
>                 Key: CXF-911
>                 URL: https://issues.apache.org/jira/browse/CXF-911
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>            Assignee: maomaode
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.