You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sam Carleton <sc...@miltonstreet.com> on 2013/03/02 20:26:50 UTC

setting up Maven2 WSDL2Code Plug-in

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.

How do other folks use the Maven2 WSDL2Code Plug-in exactly in their build
process?

Re: setting up Maven2 WSDL2Code Plug-in

Posted by Kishanthan Thangarajah <ks...@gmail.com>.
On Sun, Mar 3, 2013 at 12:56 AM, Sam Carleton <sc...@miltonstreet.com>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?
>

Re: setting up Maven2 WSDL2Code Plug-in

Posted by robert lazarski <ro...@gmail.com>.
On Sat, Mar 2, 2013 at 4:26 PM, Sam Carleton <sc...@miltonstreet.com> 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.
>
> How do other folks use the Maven2 WSDL2Code Plug-in exactly in their build
> process?

I don't use the Maven2 WSDL2Code Plug-in, but I do use ant with
WSDL2Java. There are docs that explain how to use axis2 with ant.
Anyways, maven can execute ant via antrun you might consider that as
an option.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org