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]
> > ----------------------------------------------------------------------
> >
> >
>

Reply via email to