Mark, That's definitely getting closer because the two offending jar files show up: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - net.unicon:cas:war:1.0 [INFO] task-segment: [dependency:tree] [INFO] ------------------------------------------------------------------------ [INFO] [dependency:tree] [INFO] net.unicon:cas:war:1.0 [INFO] +- org.springframework:spring-test:jar:2.5.6:test [INFO] \- org.springframework:spring-webflow:jar:1.0.5:compile [INFO] +- org.springframework:spring-beans:jar:2.0.7:compile [INFO] | \- (org.springframework:spring-core:jar:2.0.7:compile - omitted for duplicate) [INFO] +- org.springframework:spring-binding:jar:1.0.5:compile [INFO] | +- (org.springframework:spring-beans:jar:2.0.7:compile - omitted for duplicate) [INFO] | \- (org.springframework:spring-core:jar:2.0.7:compile - omitted for duplicate) [INFO] \- org.springframework:spring-core:jar:2.0.7:compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Wed Dec 17 11:59:42 PST 2008 [INFO] Final Memory: 10M/19M [INFO] ------------------------------------------------------------------------ How did I end up referring to spring-test or spring-webflow? Through the parent project? Adam Mark Rogers wrote: I am not entirely sure, but I think this would tell you where the dependencies are coming from:mvn dependency:tree -Dincludes=org.springframework You can add a -Dverbose as well. - Mark On 17-Dec-08, at 12:18 PM, Adam Rybicki wrote:Thanks for great suggestions. I ran "mvn -X package" and that resulted in some references to spring-beans-2.0.7 and spring-core-2.0.7, but the output was very verbose. Before I forward it here, perhaps someone can tell me how to interpret the output of "mvn dependency:analyze" first. [INFO] [dependency:analyze] [WARNING] Unused declared dependencies found: [WARNING] commons-logging:commons-logging:jar:1.1:compile [WARNING] org.inspektr:inspektr-core:jar:0.7.0:compile [WARNING] log4j:log4j:jar:1.2.15:test [WARNING] org.springframework:spring-webflow:jar:1.0.5:compile [WARNING] org.jasig.cas:cas-server-webapp:war:3.3.1:runtime [WARNING] org.springframework:spring-test:jar:2.5.6:test [WARNING] javax.servlet:servlet-api:jar:2.4:provided [WARNING] commons-lang:commons-lang:jar:2.2:runtime [WARNING] junit:junit:jar:3.8.1:test [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 47 seconds [INFO] Finished at: Wed Dec 17 10:10:08 PST 2008 [INFO] Final Memory: 18M/32M [INFO] ------------------------------------------------------------------------ Does that mean that I should somehow tell Maven to exclude these? This thread probably does not belong on the -dev list. Or does it? I sometimes can't tell. :-( Thanks, Adam Robert Oschwald wrote:Have you defined own dependencies? If yes, ensure your dependencies are not using the old artifacts as indirect dependencies. If they do so, you must exclude the artifacts from this dependencies. We use maven overlay in cas projects since a long time, and solved such collisions by excluding the offending dependencies. Btw. We use maven 2.0.8 and it works (here). maybe a "mvn dependency:analyze" or "mvn -X" will help. Robert Am 17.12.2008 um 06:35 schrieb Adam Rybicki:Scott, I have version 2.0.9. Adam Scott Battaglia wrote:Adam, Which version of Maven is being used? Older versions tended to pull in incorrect versions of Spring. -Scott -Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Tue, Dec 16, 2008 at 8:58 PM, Adam Rybicki <arybi...@unicon.net <mailto:arybi...@unicon.netwrote:All, On a project I am doing I need to build an implementation- specific version of CAS server 3.3.1. I am trying to use a Maven war overlay method in which I only need to supply the files to add or replace in cas.war in the JA-SIG Maven repository. This should make future CAS server upgrades trivially simple. I am not much of a Maven expert, so I am likely missing some option. The war file built by Maven ends up with both spring-beans-2.0.7.jar and spring-beans-2.5.6.jar as well as spring-core-2.0.7.jar and spring-core-2.5.6.jar. I've attached my pom.xml in case someone can spot my error. Thanks, Adam _______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu <mailto:cas-dev@tp.its.yale.edu> http://tp.its.yale.edu/mailman/listinfo/cas-dev ------------------------------------------------------------------------ _______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev<arybicki.vcf>_______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev_______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev<arybicki.vcf>_______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev_______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev |
begin:vcard fn:Adam Rybicki n:Rybicki;Adam org:Unicon, Inc.;Professional Services adr:Suite 113;;3140 North Arizona Avenue;Chandler;AZ;85225;United States email;internet:arybi...@unicon.net tel;work:+1-480-558-2400 tel;home:+1-310-265-8286 tel;cell:+1-310-980-2758 x-mozilla-html:FALSE url:http://www.unicon.net/ version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ cas-dev mailing list cas-dev@tp.its.yale.edu http://tp.its.yale.edu/mailman/listinfo/cas-dev