[Logo]
Forums Register Login
GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML
I want to generate a ws client[JAX-WS ] bundled into a jar. is where it's at but no one even talks about putting the generated client into a jar!

I am using Maven for builds.

I'd like to set up maven to generate the client (wsimport or clientgen) when we build the service, then add that generated code's jar as a dependency to our client software. Then we don't waste time generating the ws client when it isn't needed

How do I write a maven.xml and build.xml.project.properties?

What else I need to have for generating the client?

can you please give me an example of maven.xml which uses wsimport or clientgen?

And also this should build a jar file which contains the generated classes from wsdl and xsd.

Has anyone addressed this issue before? Any suggestions?
Hi!
I have done something along those lines in a previous project. I'll see if I can find the pom.xml.
Meanwhile, have you seen this article which describes how to use, among other things, the wsimport Maven plugin? http://blogs.sun.com/enterprisetechtips/entry/using_jax_ws_with_maven
Best wishes!
can you please give me some example which generates jar file as well?
Hi!
There is a nice, free, book about developing with Maven available here: http://www.sonatype.com/books/m2eclipse-book/reference/
Best wishes!
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 18, 2017 01:49:35.