[ http://jira.codehaus.org/browse/MOJO-321?page=comments#action_62289 ] 

Rene Clerc commented on MOJO-321:
---------------------------------

Hi Jesse,

Sorry I didn't respond earlier -- in my project, we've decided to switch to 
maven 1.0.2, because of a number of issues with maven 2.  My current svn 
checkout of the axistools-maven-plugin contains just enough differences to make 
the plugin work for me, as I recall it.  However, documentation is lacking, and 
it is not robust at all.  Be warned!  ;-)

I am sure that your uncommitted code solved this much more elegantly, for which 
I do not have the time right now, I apologize.

In short: the way I solved it is to bypass the computing of the staleness of 
the WSDLs entirely, but simply supply the wsdl to axis, and let axis download 
XSDs it might depend on.  You might figure this out when you look at the patch.

Hope this helps, and keep me posted!

> [axistools-maven-plugin] the pre-downloading of WSDL's causes includes 
> schema's not to be found
> -----------------------------------------------------------------------------------------------
>
>          Key: MOJO-321
>          URL: http://jira.codehaus.org/browse/MOJO-321
>      Project: Mojo
>         Type: Bug

>   Components: axistools
>  Environment: Linux, Debian testing
>     Reporter: Rene Clerc
>     Assignee: Jesse McConnell

>
>
> I've encountered some problems with the axistools-maven-plugin.
> First of all, I think the plugin should depend on (at least) axis 1.3 -- I've 
> spent some time dealing with options that weren't passed correctly
> to the WSDL2Java.  However, this may have had to do with incorrect 
> dependencies.
> The real problem lies with the following: when supplied with one or more URLs 
> denoting a WSDL, the plugin downloads these WSDLs (and en passant renames 
> them to a "safe" filename). It is then passed to axis WSDL2Java. If, however, 
> such a WSDL includes an XML schema, this is resolved locally, i.e. on the 
> filesystem. This means that my schema cannot be found, because it resids on 
> the same HTTP server as the WSDL and is therefore not yet downloaded.
> I assume, by looking at the code, this prefetching of the WSDLs is done to 
> check whether the re-generating of the Java files is necessary or not. 
> However, this breaks my code generation.
> I have fixed the problem for myself by bypassing the downloading and instead 
> supplying the urls directly to WSDL2Java. This "works for me". I can supply a 
> patch if necessary.
> I would be glad to help out inventing a more robust solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to