Re: setting up Maven2 WSDL2Code Plug-in

Kishanthan Thangarajah <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAHt68vH3+89RQMLnYYuB+TMKQcwTB5AQA3z-8+uN7JWrd0+F5w@mail.gmail.com>
On Sun, Mar 3, 2013 at 12:56 AM, Sam Carleton <[email protected]>wrote:

> I have been using Axis2/C for years and am now trying to figure out how to
> move to Axis2/Java using Mavin as the build system. My current process is
> to run a command line batch process to generate all the C code from the
> WSDL using WSDL2C.  Then I manually move over the new source code into the
> correct folder,.  Finally I go into the development environment and work on
> the code.
>
> Moving to the Axis2/Java world, I am hoping to find a way to use Mavin to
> generate the java classes as part of the build step and remove the manual
> process.  The problem is I cannot find a way to get the Maven2 WSDL2Code
> Plug-in to place the source code where I want it, it always put it first
> into a src file, I want to follow the Maven model of src\main\java.
>

This is not possible with 1.6.2 version of axis2 (which is the latest
release). Because if you look at the WSDL2Code maven plugin source [1], the
"src" is set as the default value (hard coded).

In trunk, this is fixed [2]. You can set the value using
"targetSourceFolderLocation" config element in the plugin definition. Also
using CLI, you can use the system property query expression
-Daxis2.wsdl2code.targetSourceFolderLocation.

Thanks,
Kishanthan.
[1]
http://svn.apache.org/repos/asf/axis/axis2/java/core/tags/v1.6.2/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
[2] https://issues.apache.org/jira/browse/AXIS2-5038

>
> How do other folks use the Maven2 WSDL2Code Plug-in exactly in their build
> process?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.