On 12/12/2008, at 12:39 AM, De Smet Ringo wrote:
The value is overridden for the project
under build, but not for the transitive dependencies. Are you
surprised
that I find this an inconsistent result? :-)
Ok, I see what you mean. You illustrated the property in the project
which should not work. But from settings.xml and the command line it
should.
To get what you want, you should be adding a dependency
management element on junit in b-pom.xml.
I added the following to my pom.xml of project b:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
However, mvn dependency:resolve still points to junit 3.8.1:
[INFO] The following files have been resolved:
[INFO] be.atriso.test:a:pom:1.0-SNAPSHOT:compile
[INFO] junit:junit:jar:3.8.1:compile
Was this what you suggested or did I misinterpret your suggestion?
try removing the type :)
- Brett
--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]