You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by CXF-de'per <pr...@gmail.com> on 2008/10/14 16:11:20 UTC
true doesn't works with
code-gen plugin
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.
Re: true doesn't works
with code-gen plugin
Posted by CXF-de'per <pr...@gmail.com>.
that was typo... I am using 2.0.6...
Thanx! Dan. I will upgrade to 2.0.8... and get back to this...
/Praveen
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-tp19974334p19979975.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: true doesn't works with code-gen plugin
Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog
Re: true doesn't works with code-gen plugin
Posted by Daniel Kulp <dk...@apache.org>.
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 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 = org.apache.maven.project.MavenProject@4f7afe5
> (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 = org.apache.maven.project.MavenProject@4f7afe5
> (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
dkulp@apache.org
http://dankulp.com/blog
Re: true doesn't works
with code-gen plugin
Posted by CXF-de'per <pr...@gmail.com>.
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 = org.apache.maven.project.MavenProject@4f7afe5
(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 = org.apache.maven.project.MavenProject@4f7afe5
(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.