You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Callum Haig <ca...@googlemail.com> on 2007/10/23 13:42:22 UTC
Example java2ws maven plugin config?
Could someone please post an example maven pom fragment that will help
me get started with the CXF java2ws maven plugin?
In the absence of documentation I have tried many variations of the
fragment below without success.
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-java2ws-plugin</artifactId>
<version>2.1-incubator-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.1-incubator-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-ws</id>
<phase>process-classes</phase>
<configuration>
<className>
my.ws.target.class
</className>
<classpathElements>
${project.compileClasspathElements}
</classpathElements>
<classpath>
${basedir}/target/classes
</classpath>
<genServer>true</genServer>
<genClient>true</genClient>
<genWrapperbean>true</genWrapperbean>
<genWsdl>true</genWsdl>
<project>${project}</project>
</configuration>
<goals>
<goal>java2ws</goal>
</goals>
</execution>
</executions>
</plugin>
Regards,
Callum.
Re: Example java2ws maven plugin config?
Posted by Jim Ma <em...@iona.com>.
Hi Callum,
I just fixed an issue for this plugin and updated the CXF wiki for it .
Refer to this link
http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html for
its configuration and
usage .
I will ask other guys to publish a snapshot for this fix. Before the new
snapshot is ready, you can download
the latest code in trunk and build it .
Let me know if you have any problems
Regards
Jim
Callum Haig wrote:
> Could someone please post an example maven pom fragment that will help
> me get started with the CXF java2ws maven plugin?
>
> In the absence of documentation I have tried many variations of the
> fragment below without success.
>
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-java2ws-plugin</artifactId>
> <version>2.1-incubator-SNAPSHOT</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>2.1-incubator-SNAPSHOT</version>
> </dependency>
> </dependencies>
> <executions>
> <execution>
> <id>generate-ws</id>
> <phase>process-classes</phase>
> <configuration>
> <className>
> my.ws.target.class
> </className>
> <classpathElements>
> ${project.compileClasspathElements}
> </classpathElements>
> <classpath>
> ${basedir}/target/classes
> </classpath>
> <genServer>true</genServer>
> <genClient>true</genClient>
> <genWrapperbean>true</genWrapperbean>
> <genWsdl>true</genWsdl>
> <project>${project}</project>
> </configuration>
> <goals>
> <goal>java2ws</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> Regards,
> Callum.
>
>