I have a CXF WS project that I would use it in another project, I would consume this WS in a Web Project but I don’t know how to generate Jar file.
Please have you any idea or an example?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The maven-war-plugin supports creating a separate artifact that just contains the classes.
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
See the ‘attachClasses’ parameter. No need to add in the jar plugin or mess with the packaging. Just add the war plugin to pluginManagement and turn this on.
However, I fear this this isn’t what you want. To consume a CXF web service, you need a client. To get a client, follow the instructions in the CXF samples for how to generate and use client stubs. You’ll want a separate maven project for this.