If you can't find the debugging option, just delete the 2.0.8 JARs
from your local repository and do an offline build (mvn -o install)
and when it fails on the missing 2.0.8 dependencies it will list what
other dependencies are depending on those and you can build the
exclusions from there. I've also seen something bring in
spring-support-2.0.8.jar I think.
Thanks,
Aaron
On Sat, Nov 29, 2008 at 7:34 PM, Glen Mazza <[EMAIL PROTECTED]> wrote:
>
> I believe Maven has some debugging functionality that lets you know the
> (sub)dependencies that each dependency will load--if you can run that (and
> hopefully the Maven users ML or someone here can tell you what it is), you
> will be able to identify those dependencies you have listed below that are
> bringing in Spring 2.0.8 stuff. From that, you should be able to add an
> <exclusion/> on Spring 2.0.x within each "guilty" <dependency/> so those
> unwanted Spring jars will not be brought in.
>
> HTH,
> Glen
>
>
> sshah wrote:
>>
>> Hello:
>>
>> I am trying to use CXF 2.1.3 with Spring 2.5.5 and am using maven to
>> build my project. However, when I do a build its bringing in a couple of
>> spring 2.0.8 jar files (spring-beans-2.0.8.jar and spring-web-2.0.8).
>> When trying to write a test client that also uses spring, its not able
>> to resolve between these two versions. Any thoughts on how I can avoid
>> bringing the 2.0.8 jars?
>>
>> My POM file dependencies are listed below.
>>
>> <dependencies>
>> <dependency>
>> <groupId>log4j</groupId>
>> <artifactId>log4j</artifactId>
>> <version>1.2.14</version>
>> </dependency>
>> <dependency>
>> <groupId>aopalliance</groupId>
>> <artifactId>aopalliance</artifactId>
>> <version>1.0</version>
>> </dependency>
>> <dependency>
>> <groupId>aspectj</groupId>
>> <artifactId>aspectjrt</artifactId>
>> <version>1.5.3</version>
>> </dependency>
>> <dependency>
>> <groupId>aspectj</groupId>
>> <artifactId>aspectjweaver</artifactId>
>> <version>1.5.3</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-core</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-aop</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-context</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-context-support</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-tx</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-jms</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-test</artifactId>
>> <version>2.5.5</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-core</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-common-utilities</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-frontend-jaxws</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-transports-http</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-frontend-simple</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-frontend-jaxws</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-databinding-aegis</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-transports-local</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-transports-jms</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-management</artifactId>
>> <version>${cxf.version}</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>xerces</groupId>
>> <artifactId>xercesImpl</artifactId>
>> <version>2.8.1</version>
>> </dependency>
>> <dependency>
>> <groupId>xalan</groupId>
>> <artifactId>xalan</artifactId>
>> <version>2.7.0</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>junit</groupId>
>> <artifactId>junit</artifactId>
>> <version>4.1</version>
>> </dependency>
>>
>>
>> </dependencies>
>> <properties>
>> <cxf.version>2.1.3</cxf.version>
>> </properties>
>>
>>
>> thanks
>>
>>
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Problem-doing-a-build-using-Maven-and-Spring-tp20749119p20753278.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>