Hello

I'm using the info listed here 
http://www.ja-sig.org/issues/browse/CAS-816
to build a cas server using ehcache but with terracotta instead of RMI
clustering.

I'm using the advice here to maintain my own changes
http://www.ja-sig.org/wiki/display/CASUM/Maintaining+local+customizations+using+Maven+2

I'm trying to use ehcache-core-2.0.0 in my project but the project always
builds with ehcache-1.2.3.jar in my war. I've tried:

* dependency exclusions against org.hibernate:hibernate-annotations in the
cas-server-core pom
* packagingExcludes of the maven-war-plugin in my custom pom
* warSourceExcludes of the maven-war-plugin in my custom pom

but can't get this jar out of my project.

Looking at a --debug mvn build I see the following:


.....
.....
[DEBUG] Retrieving parent-POM: org.apache.commons:commons-parent:pom:5 for
project: commons-logging:commons-logging:jar:1.1.1 from the repository.
[DEBUG]       commons-logging:commons-logging:jar:1.1.1:compile (selected
for compile)
[DEBUG] Adding managed dependencies for unknown:person-directory-api
[DEBUG]   aopalliance:aopalliance:jar:1.0
[DEBUG]   com.sun.xml.bind:jaxb-impl:jar:2.1.9
[DEBUG]   commons-collections:commons-collections:jar:3.2.1
[DEBUG]   commons-lang:commons-lang:jar:2.4
[DEBUG]   commons-logging:commons-logging:jar:1.1.1
[DEBUG]   hsqldb:hsqldb:jar:1.8.0.7
[DEBUG]   javax.servlet:servlet-api:jar:2.3
[DEBUG]   junit:junit:jar:4.4
[DEBUG]   log4j:log4j:jar:1.2.15
[DEBUG]   org.apache.directory.server:apacheds-core:jar:1.0.2
[DEBUG]   org.apache.directory.server:apacheds-server-jndi:jar:1.0.2
[DEBUG]   org.apache.directory.server:apacheds-server-unit:jar:1.0.2
[DEBUG]   org.jasig.service:person-directory-api:jar:1.5.0-RC5
[DEBUG]   org.easymock:easymock:jar:2.4
[DEBUG]   org.slf4j:slf4j-log4j12:jar:1.5.5
[DEBUG]   org.springframework:spring-aop:jar:2.5.6
[DEBUG]   org.springframework:spring-beans:jar:2.5.6
[DEBUG]   org.springframework:spring-context:jar:2.5.6
[DEBUG]   org.springframework:spring-core:jar:2.5.6
[DEBUG]   org.springframework:spring-jdbc:jar:2.5.6
[DEBUG]   org.springframework:spring-test:jar:2.5.6
[DEBUG]   org.springframework:spring-tx:jar:2.5.6
[DEBUG]   org.springframework:spring-web:jar:2.5.6
[DEBUG]   org.springframework.ldap:spring-ldap:jar:1.2.1
[DEBUG]   org.springmodules:spring-modules-cache:jar:0.8a
[DEBUG]       org.jasig.service:person-directory-api:jar:1.5.0-RC5:compile
(selected for compile)
[DEBUG]       org.springframework:spring-beans:jar:2.5.6:compile (selected
for compile)
[DEBUG]         org.springframework:spring-core:jar:2.5.6:compile (selected
for compile)
[DEBUG]       org.springframework:spring-core:jar:2.5.6:compile (selected
for compile)
[DEBUG]     jdom:jdom:jar:1.0:compile (selected for compile)
[DEBUG]     org.springframework:spring-orm:jar:2.5.6.SEC01:compile (selected
for compile)
[DEBUG]       org.springframework:spring-beans:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]       org.springframework:spring-context:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]         org.springframework:spring-beans:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]         org.springframework:spring-core:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]       org.springframework:spring-core:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]       org.springframework:spring-tx:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]         org.springframework:spring-beans:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]         org.springframework:spring-core:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]     org.springframework:spring-jdbc:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]       org.springframework:spring-beans:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]       org.springframework:spring-core:jar:2.5.6.SEC01:compile
(removed - nearer found: 2.5.6)
[DEBUG]     org.springframework:spring-core:jar:2.5.6:compile (removed -
nearer found: 2.5.6.SEC01)
[DEBUG]     org.springframework:spring-core:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]     org.springframework:spring-beans:jar:2.5.6:compile (removed -
nearer found: 2.5.6.SEC01)
[DEBUG]     org.springframework:spring-beans:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]     org.springframework:spring-webmvc:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]      
org.springframework:spring-context-support:jar:2.5.6.SEC01:compile (selected
for compile)
[DEBUG]       org.springframework:spring-web:jar:2.5.6.SEC01:compile
(selected for compile)
[DEBUG]     org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile
(selected for compile)
[DEBUG]       org.hibernate:hibernate:jar:3.2.6.ga:compile (selected for
compile)
[DEBUG]         net.sf.ehcache:ehcache:jar:1.2.3:compile (selected for
compile)
...
..
.

can I exclude ehcace-1.2.3.jar from my war?

Cheers

Nomit

-- 
View this message in context: 
http://n4.nabble.com/building-server-with-ehcaceTicketRegistry-tp1596834p1596834.html
Sent from the CAS Users mailing list archive at Nabble.com.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to