On Tuesday 18 May 2010 11:04:07 am Dan King wrote: > > CXF makes a combined jar that you can use. > > Do you know where I can find this combined client jar? I've searched > everywhere with no luck. > > >If you do not use this beware of incorporating CXF jars into a single > >jar (jar-with-dependencies) since the individual CXF jars have duplicate > >property files that only contain the properties required for the jar > >that they are in and you will end up with one that does not have all the > >properties that CXF needs. > > > >Their combined jar has property files that are complete for all of the > >modules combined. > > > >It may add to your overhead to have modules that you do not need but > >that is infinitely better than having property files that are missing > >properties that CXF needs. > > This is exactly my concern; so my preference is to find and use a client > jar provided by CXF. > > Even so I'm curious if it is possible to use maven to dissect dependencies > and determine which set of dependencies allow for which set of > functionality. If yes, how?
Two places to investigate: CXF distribution has a WHICH_JARS file that describes what is needed and when for the third party deps and such: http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS If you want to create a minimal jar of some sort, you should probably grab the pom that they use to create their bundles: http://svn.apache.org/repos/asf/cxf/trunk/distribution/bundle/all/pom.xml and start with that. It uses the shade plugin to combine the various jars which merges the various spring files and properties and such together properly so that the bundle will work correctly. -- Daniel Kulp [email protected] http://dankulp.com/blog --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
