You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Krystan Honour <kr...@gmail.com> on 2007/06/13 12:14:28 UTC
xfire plugin question
Hi there,
I am writing a build file and in it I wish to generate webservice stubs
using wsgen for xfire.
I have two wsdl files I wish to generate from each of which I wish to
specify a seperate package for. I can however see no concrete way to map
invididual sets to different namespaces.
My current config looks like this:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>xfire-maven-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsgen</goal>
> </goals>
> </execution>
> </executions>
>
> <configuration>
> <package>foo.bar</package>
> <package>bar.foo</package>
>
> <profile>
> </profile>
> <binding></binding>
> <outputDirectory>${project.build.directory
> }/generated-sources/xfire</outputDirectory>
> <wsdls>
> <wsdl>${basedir}/src/main/wsdl/service1.wsdl</wsdl>
> <wsdl>${basedir}/src/main/wsdl/service2.wsdl</wsdl>
> </wsdls>
> </configuration>
> </plugin>
>
I was wondering if this is the correct way to do this, especially the
<package> declarations.
Regards
Krys
Re: xfire plugin question
Posted by Krystan Honour <kr...@gmail.com>.
Thanks very much.
I soon realised that I didn't actually need to do this in this instance but
this is very helpful, thanks very much.
On 13/06/07, Andrius Šabanas <an...@pivotcapital.com> wrote:
>
> Krystan Honour wrote:
> > Hi there,
> >
> > I am writing a build file and in it I wish to generate webservice stubs
> > using wsgen for xfire.
> > I have two wsdl files I wish to generate from each of which I wish to
> > specify a seperate package for. I can however see no concrete way to
> map
> > invididual sets to different namespaces.
> >
> > My current config looks like this:
> >
> >
> >> <plugin>
> >> <groupId>org.codehaus.mojo</groupId>
> >> <artifactId>xfire-maven-plugin</artifactId>
> >> <version>1.0-SNAPSHOT</version>
> >> <executions>
> >> <execution>
> >> <phase>generate-sources</phase>
> >> <goals>
> >> <goal>wsgen</goal>
> >> </goals>
> >> </execution>
> >> </executions>
> >>
> >> <configuration>
> >> <package>foo.bar</package>
> >> <package>bar.foo</package>
> >>
> >> <profile>
> >> </profile>
> >> <binding></binding>
> >> <outputDirectory>${project.build.directory
> >> }/generated-sources/xfire</outputDirectory>
> >> <wsdls>
> >>
> >> <wsdl>${basedir}/src/main/wsdl/service1.wsdl</wsdl>
> >>
> >> <wsdl>${basedir}/src/main/wsdl/service2.wsdl</wsdl>
> >> </wsdls>
> >> </configuration>
> >> </plugin>
> >>
> > I was wondering if this is the correct way to do this, especially the
> > <package> declarations.
> >
> >
> > Regards
> >
> > Krys
> >
>
>
> Hello,
>
> Try something like this - I did a quick test, and it seems to work nicely:
>
> ----------------------------
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>xfire-maven-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
>
> <!-- common configuration for all executions goes here -->
> <configuration>
> <profile>...</profile>
> <binding>...</binding>
> </configuration>
>
> <executions>
> <execution>
>
> <!-- make sure id is unique within a plugin -->
> <id>exec1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsgen</goal>
> </goals>
>
> <!-- execution-specific config -->
> <configuration>
> <package>foo.bar</package>
> <wsdls>
> <wsdl>${project.basedir}/src/main/wsdl/service1.wsdl</wsdl>
> </wsdls>
> <outputDirectory>....</outputDirectory>
> </configuration>
> </execution>
>
> <execution>
>
> <!-- make sure id is unique within a plugin -->
> <id>exec2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsgen</goal>
> </goals>
>
> <!-- execution-specific config -->
> <configuration>
> <package>baz.quux</package>
> <wsdls>
> <wsdl>${project.basedir}/src/main/wsdl/service2.wsdl</wsdl>
> </wsdls>
> <outputDirectory>....</outputDirectory>
> </configuration>
> </execution>
>
> </executions>
> </plugin>
> ----------------------------
>
>
> cheers,
>
> Andrius
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: xfire plugin question
Posted by Andrius Šabanas <an...@pivotcapital.com>.
Krystan Honour wrote:
> Hi there,
>
> I am writing a build file and in it I wish to generate webservice stubs
> using wsgen for xfire.
> I have two wsdl files I wish to generate from each of which I wish to
> specify a seperate package for. I can however see no concrete way to map
> invididual sets to different namespaces.
>
> My current config looks like this:
>
>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>xfire-maven-plugin</artifactId>
>> <version>1.0-SNAPSHOT</version>
>> <executions>
>> <execution>
>> <phase>generate-sources</phase>
>> <goals>
>> <goal>wsgen</goal>
>> </goals>
>> </execution>
>> </executions>
>>
>> <configuration>
>> <package>foo.bar</package>
>> <package>bar.foo</package>
>>
>> <profile>
>> </profile>
>> <binding></binding>
>> <outputDirectory>${project.build.directory
>> }/generated-sources/xfire</outputDirectory>
>> <wsdls>
>>
>> <wsdl>${basedir}/src/main/wsdl/service1.wsdl</wsdl>
>>
>> <wsdl>${basedir}/src/main/wsdl/service2.wsdl</wsdl>
>> </wsdls>
>> </configuration>
>> </plugin>
>>
> I was wondering if this is the correct way to do this, especially the
> <package> declarations.
>
>
> Regards
>
> Krys
>
Hello,
Try something like this - I did a quick test, and it seems to work nicely:
----------------------------
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xfire-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<!-- common configuration for all executions goes here -->
<configuration>
<profile>...</profile>
<binding>...</binding>
</configuration>
<executions>
<execution>
<!-- make sure id is unique within a plugin -->
<id>exec1</id>
<phase>generate-sources</phase>
<goals>
<goal>wsgen</goal>
</goals>
<!-- execution-specific config -->
<configuration>
<package>foo.bar</package>
<wsdls>
<wsdl>${project.basedir}/src/main/wsdl/service1.wsdl</wsdl>
</wsdls>
<outputDirectory>....</outputDirectory>
</configuration>
</execution>
<execution>
<!-- make sure id is unique within a plugin -->
<id>exec2</id>
<phase>generate-sources</phase>
<goals>
<goal>wsgen</goal>
</goals>
<!-- execution-specific config -->
<configuration>
<package>baz.quux</package>
<wsdls>
<wsdl>${project.basedir}/src/main/wsdl/service2.wsdl</wsdl>
</wsdls>
<outputDirectory>....</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
----------------------------
cheers,
Andrius
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org