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 Indrit Selimi <in...@yahoo.com> on 2009/09/22 19:58:01 UTC
[AXIS2] A question on axis2-wsdl2code-maven-plugin
Dear all,
I'm using the maven plugin of axis2. As a maven plugin I thought that giving an output directory of
<outputDirectory>src/main/java</outputDirectory>(or better nothing at all)
and the right package name I could find the generated sources on my package, but I'm seeing that the plugin generates a new directory src! So, at the end I have this situation: src/main/java/src... how I can get rid of this new src directory? Which are the best practices for integrating the plugin in a maven project? BTW, a build.xml file is also created, for what is needed?
Thank you very much.
Indrit
Plugin Configuration:
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<packageName>it.rcs.maps.service.providers.microsoft.webservice</packageName>
<wsdlFile>src/main/resources/wsdl/mappoint.wsdl</wsdlFile>
<generateServerSide>true</generateServerSide>
<outputDirectory>src/main/java</outputDirectory>
</configuration>
<executions>
<execution>
<id>wsdl</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
</plugin>
Re: [AXIS2] A question on axis2-wsdl2code-maven-plugin
Posted by Andreas Veithen <an...@gmail.com>.
In a Maven build you should never let a plugin output generated code
into src/main/java, but instead into a temporary directory under
"target" (so that it will be removed by mvn clean). In that case it
doesn't matter that axis2-wsdl2code-maven-plugin places the code in a
subdirectory called "src".
Andreas
On Tue, Sep 22, 2009 at 19:58, Indrit Selimi <in...@yahoo.com> wrote:
> Dear all,
>
> I'm using the maven plugin of axis2. As a maven plugin I thought that giving an output directory of
> <outputDirectory>src/main/java</outputDirectory>(or better nothing at all)
> and the right package name I could find the generated sources on my package, but I'm seeing that the plugin generates a new directory src! So, at the end I have this situation: src/main/java/src... how I can get rid of this new src directory? Which are the best practices for integrating the plugin in a maven project? BTW, a build.xml file is also created, for what is needed?
>
> Thank you very much.
>
> Indrit
>
>
> Plugin Configuration:
> <plugin>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.5</version>
> <configuration>
> <packageName>it.rcs.maps.service.providers.microsoft.webservice</packageName>
> <wsdlFile>src/main/resources/wsdl/mappoint.wsdl</wsdlFile>
> <generateServerSide>true</generateServerSide>
> <outputDirectory>src/main/java</outputDirectory>
> </configuration>
> <executions>
> <execution>
> <id>wsdl</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
>
>
>