FYI, Cxf2.0.2 still using java2wsdl, so you dont' need to change the
goal to java2ws
If you're using latest trunk, you need to change to java2ws, CXF2.0.2 is
the last version which using java2wsdl
Besides, your version
<version>2.0-incubator-M1</version>
is not correct
Try the
2.0.2-incubator as DanK said
Regards,
James
Hello James,
I'm using Apache CXF 2.0.2.
Here's an extract from my pom.xml
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>1.5</source>
<target>1.5</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.0-incubator-M1</version>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-wsdl</id>
<phase>process-classes</phase>
<configuration>
<className>foo.myClass</className>
</configuration>
<goals>
<goal>java2ws</goal>
</goals>
</execution>
</executions>
</plugin>
2007/10/11, James Mao <[EMAIL PROTECTED]>:
What's the version of cxf are you using? it's been changed to java2ws
http://cwiki.apache.org/CXF20DOC/java-to-ws.html
James
Hi, I've been trying to use the Maven plugin but I'm getting this
error.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------
---
[INFO] Building FooProject Web Services Wrapper
[INFO] task-segment: [package]
[INFO]
----------------------------------------------------------------------
---
[INFO]
----------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------
[INFO] 'java2wsdl' was specified in an execution, but not found in the
plugin
[INFO]
----------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Oct 11 13:40:06 CEST 2007
[INFO] Final Memory: 3M/5M
[INFO]
----------------------------------------------------------------------