> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Configuring mojo 'org.apache.cxf:cxf-codegen-plugin:2.0.6:wsdl2java' -->

Hmm......   if you are using CXF 2.0.8, why does that say 2.0.6?     That 
would be the thing to try and track down.   Not sure why that would be 
occuring.

2.0.6 doesn't support the defaultOptions.   That was added in 2.0.8.


Dan








On Tuesday 14 October 2008 2:43:16 pm CXF-de'per wrote:
> 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>



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to