On 18/05/2010 11:04 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.

Here is our maven dependency. It has a lot of exclusions since we have other poms that deal with Spring, commons* and other commonly used artifacts.

It is available on Maven Central so you should have no trouble getting it.

<properties>
<cxf-bundle.version>2.2.5</cxf-bundle.version>
</properties>



<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>${cxf-bundle.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-beans</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-context</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>aopalliance</artifactId>
<groupId>aopalliance</groupId>
</exclusion>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
<exclusion>
<artifactId>spring-core</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-jms</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-context-support</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-web</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
<exclusion>
<artifactId>oro</artifactId>
<groupId>oro</groupId>
</exclusion>
<exclusion>
<artifactId>commons-collections</artifactId>
<groupId>commons-collections</groupId>
</exclusion>
<exclusion>
<artifactId>spring-tx</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>dom4j</artifactId>
<groupId>dom4j</groupId>
</exclusion>
<exclusion>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
</exclusion>
<exclusion>
<artifactId>antlr</artifactId>
<groupId>antlr</groupId>
</exclusion>
<exclusion>
<artifactId>velocity</artifactId>
<groupId>org.apache.velocity</groupId>
</exclusion>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
<exclusion>
<artifactId>xml-apis</artifactId>
<groupId>xml-apis</groupId>
</exclusion>
</exclusions>
</dependency>

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?

CXF is a special case since they use duplicate filenames for property files and you can not make your own bundle with Maven without being short of property values at run-time.

Been there- Done that.

Ron

-Dan




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to