Hi,

I am using the 2.6.2-SNAPSHOT:

2.6.2-20120813.071134-43


in Eclipse with m2e but I get the following error when I run package.

[ERROR] Failed to execute goal 
org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java 
(myproject-generate-sources) on project cope: 
Execution myproject-generate-sources of goal 
org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java failed: 
java.lang.NullPointerException -> [Help 1]

Here is my pom.xml section for cxf:

<plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>${cxf.version}</version>
                <executions> 
                    <execution>
                        <id>myproject-generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            
<sourceRoot>${basedir}/target/generated-sources/cxf-codegen-plugin</sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    
<wsdl>http://mydomain.com:23000/webapps/webservicesimulator/service/MyService?wsdl</wsdl>
                                    <extraargs>
                                        <extraarg>-client</extraarg>
                                    </extraargs>
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
          </plugin>

This works fine with cxf 2.6.1

Is there something that changed in the pom.xml requirements for 2.6.2?

Thank you,

Mike

Reply via email to