here is the info I got when I ran mvn with -X
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Configuring mojo 'org.apache.cxf:cxf-codegen-plugin:2.0.6:wsdl2java' -->
(f) classesDirectory =
C:\fbs\amsf-phase1\projects\customers\amerisafe\target\classes
(f) project = [EMAIL PROTECTED]
(f) sourceRoot =
C:\fbs\amsf-phase1\projects\customers\amerisafe\target\classes
(f) useCompileClasspath = false
(s) wsdl =
C:\fbs\amsf-phase1\projects\customers\amerisafe/wsdl/GetNewSubmissionNumber.wsdl
(s) extraargs = [-p, com.firstbest.pso.amsf.webservice.client, -b,
C:\fbs\amsf-phase1\projects\customers\amerisafe/wsdl/amsf_binding.xml]
(f) wsdlOptions = [Lorg.apache.cxf.maven_plugin.WsdlOption;@944dbd
-- end configuration --
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
It completly ignores the default options... the <defaultOptions> is in the
right place in my pom?
when I ran with <extraarg>-autoNameResolution</extraarg>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Configuring mojo 'org.apache.cxf:cxf-codegen-plugin:2.0.6:wsdl2java' -->
(f) classesDirectory =
C:\fbs\amsf-phase1\projects\customers\amerisafe\target\classes
(f) project = [EMAIL PROTECTED]
(f) sourceRoot =
C:\fbs\amsf-phase1\projects\customers\amerisafe\target\classes
(f) useCompileClasspath = false
(s) wsdl =
C:\fbs\amsf-phase1\projects\customers\amerisafe/wsdl/GetNewSubmissionNumber.wsdl
(s) extraargs = [autoNameResolution, -p,
com.firstbest.pso.amsf.webservice.client, -b,
C:\fbs\amsf-phase1\projects\customers\amerisafe/wsdl/amsf_binding.xml]
(f) wsdlOptions = [Lorg.apache.cxf.maven_plugin.WsdlOption;@133f6dd
-- end configuration --
cxf-codegen:wsdl2java {execution: generate-sources}]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
which looks fine... FYI... I use cxf 2.0.8...
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>
>
>
>
--
View this message in context:
http://www.nabble.com/%3CautoNameResolution%3Etrue%3C-autoNameResolution%3E-doesn%27t-works-with-code-gen-plugin-tp19974334p19979666.html
Sent from the cxf-user mailing list archive at Nabble.com.