axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: [AXIS2] A question on axis2-wsdl2code-maven-plugin
Date Tue, 22 Sep 2009 18:34:49 GMT
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 <indritselimi@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>
>
>
>
>
>

Mime
View raw message