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  
>>>> <[email protected] <mailto:[email protected]
>>>>
>>>>>> wrote:
>>>>>>
>>>>    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
>>>>    [email protected] <mailto:[email protected]>
>>>>    http://tp.its.yale.edu/mailman/listinfo/cas-dev
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> cas-dev mailing list
>>>> [email protected]
>>>> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>>>>
>>>>
>>> <arybicki.vcf>_______________________________________________
>>> cas-dev mailing list
>>> [email protected]
>>> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>>>
>> _______________________________________________
>> cas-dev mailing list
>> [email protected]
>> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>>
>>
> <arybicki.vcf>_______________________________________________
> cas-dev mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas-dev

_______________________________________________
cas-dev mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Reply via email to