Hi, I posted the following on the maven mailing list, but maybe I was too much off topic there as I got no response.
My question is, what's the best practice when it comes to setting up interdependency for a web service client project in Maven 2? I have a module that provides a web service, a maven war project using CXFServlet. In that module I generate a wsdl file using the java2wsdl target from the cxf-codegen-plugin. Works perfectly of course. Now, I want to set up a client module too. The client module is not strictly dependent on the jar of the service provider module, so it doesn't seem to be a normal dependency. I suppose could just copy the generated wsdl manually from the provider module somewhere into the client module src directory and generate classes with the wsdl2java target and build against that. This seems doable, but I'm wondering if there isn't a smarter way - I'm rather newbieish both to m2 and cxf so I would almost expect that I've missed some clever way to solve this. Any pointers greatfully appreciated! How do you people solve it? -- Fredrik Jonson
