I have a naming conflict in one of the xsd... I know that for this either
1) we need to write a jaxb binding xml
2) wsdl2java with -autoNameResolution

when I run wsdl2java with -autoNameResolution this works fine... but when I
add this in the pom.xml as a part of build... this doesn't work

here is my pom.xml

<build>

      <plugins>

      <plugin>

          <groupId>org.apache.cxf</groupId>

          <artifactId>cxf-codegen-plugin</artifactId>

          <version>2.0.8</version>

          <dependencies>

              <dependency>

                  <groupId>xerces</groupId>

                  <artifactId>xercesImpl</artifactId>

                  <version>2.8.1</version>

              </dependency>

          </dependencies>

          

          <executions>

              <execution>

                  <id>generate-sources</id>

                  <phase>generate-sources</phase>

                  <goals>

                      <goal>wsdl2java</goal>

                  </goals>

                  <configuration>

                      <sourceRoot>

                          ${basedir}/target/classes

                      </sourceRoot>

                       <defaultOptions> 

                       <autoNameResolution>true</autoNameResolution>

                       </defaultOptions>
                        <wsdlOptions>

                          <wsdlOption>

                              <wsdl>

                                  ${basedir}/wsdl/PolicyService.wsdl

                              </wsdl>

                              <extraargs>

                                  <extraarg>-p</extraarg>

                                  <extraarg>

                                      com.firstbest.icw.webservice.client1

                                  </extraarg>

                               </extraargs>

                          </wsdlOption>

                      </wsdlOptions>

                      <addClasspath>true</addClasspath>

                  </configuration>

              </execution>

          </executions>

      </plugin>

     </plugins>


-- 
View this message in context: 
http://www.nabble.com/%3CautoNameResolution%3Etrue%3C-autoNameResolution%3E-doesn%27t-works-with-code-gen-plugin-tp19974334p19974334.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to