On 12/7/06, Barrie Treloar <[EMAIL PROTECTED]> wrote:
I might add that these artifacts are in my local repository.

Trawling through poms now to see if I can find differing versions.


If I comment out
org.apache.maven.shared.maven-plugin-testing-tools:1.0-SNAPSHOT from
the pom file I get past the failure to resolve artifacts (but
obviously compilation fails because of missing dependencies)

   <dependency>
     <groupId>org.apache.maven.shared</groupId>
     <artifactId>maven-plugin-testing-tools</artifactId>
     <version>1.0-SNAPSHOT</version>
     <scope>test</scope>
   </dependency>

org.apache.maven.shared.maven-test-tools:1.0-SNAPSHOT defines

   <dependency>
     <groupId>org.codehaus.plexus</groupId>
     <artifactId>plexus-utils</artifactId>
     <version>1.4-SNAPSHOT</version>
   </dependency>


But I still can't work out why it is failing to resolve.

Re-reading BBWM - 3.6. Resolving Dependency Conflicts and Using
Version Ranges, here is the debug stuff for plexus-utils only:

[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: null:plexus-utils:jar:1.0.5 from the repository.
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:compile
(selected for compile)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5:compile
(removed - nearer found: 1.0.4)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5:compile
(removed - nearer found: 1.0.4)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:compile
(removed - nearer found: 1.0.5)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:compile
(selected for compile)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:compile
(removed - nearer found: 1.0.5)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: null:plexus-utils:jar:1.2 from the repository.
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.2:compile
(removed - nearer found: 1.0.5)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:compile
(removed - nearer found: 1.0.5)
[DEBUG] plexus-utils: resolved to version 1.4-20061015.155106-2 from
repository apache.snapshots
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus::1.0.9-SNAPSHOT for project:
null:plexus-utils:jar:1.4-20061015.155106-2 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.4-SNAPSHOT:test
(removed - nearer found: 1.0.5)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.5:compile (removed
- nearer found: 1.2)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.2:compile (selected
for compile)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.5:test
(removed - nearer found: 1.2)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:test
(removed - nearer found: 1.2)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.5:test
(removed - nearer found: 1.2)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:test
(removed - nearer found: 1.2)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:test
(removed - nearer found: 1.2)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5:test (removed
- nearer found: 1.2)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.5:test
(removed - nearer found: 1.2)

No versions are present in the repository for the artifact with a range [1.1,)
 org.codehaus.plexus:plexus-utils:jar:null

According to BBWM, since this is already declared as a direct
dependency in the pom, it should be enforcing it on dependencies....
I'm flailing in the dark here....

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

Reply via email to