Hmm.... This might be related to CXF-1794. Can you run mvn with -X and
see what is printed out when invoking wsdl2java?
You could also try:
<extraarg>-autoNameResolution</extraarg>
in there as well.
Dan
On Tuesday 14 October 2008 10:11:20 am CXF-de'per wrote:
> 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>
--
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog