You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Christopher Moesel <Ch...@avid.com> on 2007/03/27 19:11:45 UTC
Maven2 Plugin?
Hello,
I'm a current XFire user interested in trying out the latest snapshot of
CXF. I have a WSDL-first service and need to do code generation in my
build. Dan mentioned a Maven2 plugin on the XFire list-is there any
documentation or an example of how to use this plugin? If not, is there
an ANT task? Or should I just wrap a call to wsdl2java?
If possible, I would prefer a solution that requires "dozens of jars" to
be added to my classpath. I'm thinking at least 40 or 45. ;-)
Thanks,
Chris
Re: Maven2 Plugin?
Posted by James Mao <ja...@iona.com>.
P.S
If you use Ant, there is an Ant macro definition in our sample dir
/samples/common_build.xml
If you use Eclipse, there is also a maven plugin to generate the eclipse
plugins (both 3.0 and 3.1) which are used by the STP project, which
have the fancy GUI tools to generate the wsdl from java and vice vase
If you use Emacs, i just checked in a maven jdee plugin, which now just
simply generate the prj file for cxf dev, but it's also possible to
extend it to have the wsdl2java/java2wsdl function for cxf users, so,
just ask...
Enjoy!
James
> Hi Christopher,
>
> I wrote up some documentation on the wsdl2java plugin here:
>
> http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
>
> Let me know if it needs corrections/improvements. The first two
> dependencies
> in the example given should be sufficient for your usage (jaxws & http).
> Cheers,
>
> - Dan
>
> On 3/27/07, Christopher Moesel <Ch...@avid.com> wrote:
>>
>> Hello,
>>
>>
>>
>> I'm a current XFire user interested in trying out the latest snapshot of
>> CXF. I have a WSDL-first service and need to do code generation in my
>> build. Dan mentioned a Maven2 plugin on the XFire list-is there any
>> documentation or an example of how to use this plugin? If not, is there
>> an ANT task? Or should I just wrap a call to wsdl2java?
>>
>>
>>
>> If possible, I would prefer a solution that requires "dozens of jars" to
>> be added to my classpath. I'm thinking at least 40 or 45. ;-)
>>
>>
>>
>> Thanks,
>>
>> Chris
>>
>>
>
>
Re: Maven2 Plugin?
Posted by Dan Diephouse <da...@envoisolutions.com>.
Thanks for the report, I added that to our documentation. Regards,
- Dan
On 3/29/07, Christopher Moesel <Ch...@avid.com> wrote:
>
> Thanks Dan-- I'm working on this now and have come across one thing
> missing in your documentation: you also need to setup the
> pluginRepository. Here's what I added to make the build work:
>
> <pluginRepositories>
> <pluginRepository>
> <id>apache-plugin-snapshots</id>
> <name>Apache Maven Plugin Snapshots</name>
> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </pluginRepository>
> </pluginRepositories>
>
> I'll let you know if I run into any other problems.
>
> -Chris
>
> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com]
> Sent: Tuesday, March 27, 2007 1:18 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: Maven2 Plugin?
>
> Hi Christopher,
>
> I wrote up some documentation on the wsdl2java plugin here:
>
> http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
>
> Let me know if it needs corrections/improvements. The first two
> dependencies
> in the example given should be sufficient for your usage (jaxws & http).
> Cheers,
>
> - Dan
>
> On 3/27/07, Christopher Moesel <Ch...@avid.com> wrote:
> >
> > Hello,
> >
> >
> >
> > I'm a current XFire user interested in trying out the latest snapshot
> of
> > CXF. I have a WSDL-first service and need to do code generation in my
> > build. Dan mentioned a Maven2 plugin on the XFire list-is there any
> > documentation or an example of how to use this plugin? If not, is
> there
> > an ANT task? Or should I just wrap a call to wsdl2java?
> >
> >
> >
> > If possible, I would prefer a solution that requires "dozens of jars"
> to
> > be added to my classpath. I'm thinking at least 40 or 45. ;-)
> >
> >
> >
> > Thanks,
> >
> > Chris
> >
> >
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog
RE: Maven2 Plugin?
Posted by Christopher Moesel <Ch...@avid.com>.
I also believe I ran into a bug with WSDL validation. See:
https://issues.apache.org/jira/browse/CXF-503
Thanks,
Chris
-----Original Message-----
From: Christopher Moesel [mailto:Christopher_Moesel@avid.com]
Sent: Thursday, March 29, 2007 8:57 AM
To: cxf-user@incubator.apache.org
Subject: RE: Maven2 Plugin?
Thanks Dan-- I'm working on this now and have come across one thing
missing in your documentation: you also need to setup the
pluginRepository. Here's what I added to make the build work:
<pluginRepositories>
<pluginRepository>
<id>apache-plugin-snapshots</id>
<name>Apache Maven Plugin Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
I'll let you know if I run into any other problems.
-Chris
-----Original Message-----
From: Dan Diephouse [mailto:dan@envoisolutions.com]
Sent: Tuesday, March 27, 2007 1:18 PM
To: cxf-user@incubator.apache.org
Subject: Re: Maven2 Plugin?
Hi Christopher,
I wrote up some documentation on the wsdl2java plugin here:
http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
Let me know if it needs corrections/improvements. The first two
dependencies
in the example given should be sufficient for your usage (jaxws & http).
Cheers,
- Dan
On 3/27/07, Christopher Moesel <Ch...@avid.com> wrote:
>
> Hello,
>
>
>
> I'm a current XFire user interested in trying out the latest snapshot
of
> CXF. I have a WSDL-first service and need to do code generation in my
> build. Dan mentioned a Maven2 plugin on the XFire list-is there any
> documentation or an example of how to use this plugin? If not, is
there
> an ANT task? Or should I just wrap a call to wsdl2java?
>
>
>
> If possible, I would prefer a solution that requires "dozens of jars"
to
> be added to my classpath. I'm thinking at least 40 or 45. ;-)
>
>
>
> Thanks,
>
> Chris
>
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog
RE: Maven2 Plugin?
Posted by Christopher Moesel <Ch...@avid.com>.
Thanks Dan-- I'm working on this now and have come across one thing
missing in your documentation: you also need to setup the
pluginRepository. Here's what I added to make the build work:
<pluginRepositories>
<pluginRepository>
<id>apache-plugin-snapshots</id>
<name>Apache Maven Plugin Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
I'll let you know if I run into any other problems.
-Chris
-----Original Message-----
From: Dan Diephouse [mailto:dan@envoisolutions.com]
Sent: Tuesday, March 27, 2007 1:18 PM
To: cxf-user@incubator.apache.org
Subject: Re: Maven2 Plugin?
Hi Christopher,
I wrote up some documentation on the wsdl2java plugin here:
http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
Let me know if it needs corrections/improvements. The first two
dependencies
in the example given should be sufficient for your usage (jaxws & http).
Cheers,
- Dan
On 3/27/07, Christopher Moesel <Ch...@avid.com> wrote:
>
> Hello,
>
>
>
> I'm a current XFire user interested in trying out the latest snapshot
of
> CXF. I have a WSDL-first service and need to do code generation in my
> build. Dan mentioned a Maven2 plugin on the XFire list-is there any
> documentation or an example of how to use this plugin? If not, is
there
> an ANT task? Or should I just wrap a call to wsdl2java?
>
>
>
> If possible, I would prefer a solution that requires "dozens of jars"
to
> be added to my classpath. I'm thinking at least 40 or 45. ;-)
>
>
>
> Thanks,
>
> Chris
>
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog
Re: Maven2 Plugin?
Posted by Dan Diephouse <da...@envoisolutions.com>.
Hi Christopher,
I wrote up some documentation on the wsdl2java plugin here:
http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
Let me know if it needs corrections/improvements. The first two dependencies
in the example given should be sufficient for your usage (jaxws & http).
Cheers,
- Dan
On 3/27/07, Christopher Moesel <Ch...@avid.com> wrote:
>
> Hello,
>
>
>
> I'm a current XFire user interested in trying out the latest snapshot of
> CXF. I have a WSDL-first service and need to do code generation in my
> build. Dan mentioned a Maven2 plugin on the XFire list-is there any
> documentation or an example of how to use this plugin? If not, is there
> an ANT task? Or should I just wrap a call to wsdl2java?
>
>
>
> If possible, I would prefer a solution that requires "dozens of jars" to
> be added to my classpath. I'm thinking at least 40 or 45. ;-)
>
>
>
> Thanks,
>
> Chris
>
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog