I am also dealing with this right now. As far as my research led me,
there seems to be only the wsdl2java-maven-plugin. There is no official
release of it but you can download the plug-in and build it yourself
from http://svn.mojo.codehaus.org/trunk/mojo/wsdl2java-maven-plugin/

You need to rename the source files from *.jav to *.java, though. If you
don't have it yet, you also need to install the javax.mail artifact
manually (because the Sun JARs are not on the ibiblio server) on which
Axis depends.

There is no plugin for java2wsdl yet. My hint about the reason for this
is that java2wsdl doesn't fit into the standard Maven life cycle. The
phase generate-sources suits for the wsdl2java-plug-in but there is no
phase like "post-compile" which allows processing of compiled classes to
produce the WSDL file. Thus, generating the WSDL has to be done without
knowledge of Maven. Please object if I am wrong!

I have not finished Axis/Maven integration here yet, but my approach
will be to create one module, WS-API, containing the Java interface from
which the WSDL shall be generated. In a second module, WS-IMPL,
depending on WS-API, I will use the Axis Ant Task to generate the WSDL
file independently of Maven and store it in src/main/wsdl which is the
location used by the wsdl2java-maven-plugin. I will use it in the Maven
build for WS-IMPL to generate the source code. I hope it will work that
way. 

Does anyone else have ideas?

Christoph


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to