Christian Schulte wrote on Monday, December 05, 2005 12:13 PM:

> Christian Schulte schrieb:
> 
>> Hi,
>> 
>> when I build an ear file with maven 2 it happens that because of
>> transitive dependencies I get e.g. two struts.jar files in the
>> generated file. What is the recommended way of managing transitive
>> dependencies ? Say I have a dependency which itself has a dependency
>> to struts-1.2.7.jar and another dependency which itself has a
>> dependency to struts-1.2.8.jar I would like to avoid having both
>> struts versions in the generated ear file. What is the recommended
>> way of doing this ? 
>> 
> Really noone any hint or best-practice advice ?

Use a dependencyManagement section, where you define the version to use and do 
define your dependencies without a version requirement. Note, that there's an 
open JIRA issue, since currently the version is only considered, if you have 
added the artifact as direct dependency. It should/will work for transient 
dependencies in future versions.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to