A few hints which might help:

1. Maven 2.0.4 has a bug when it comes to resolving dependencies. If a 
parent POM defines the version to 1.0 and your POM wants 1.1, the parent 
wins.

2. Can you download the missing POM? Sometimes, Maven believes the POM 
can't be downloaded because it tries to download something else from that 
repository which fails and Maven blacklists it for the build. -U doesn't 
help in this case. Check your log for download errors.

3. Have you tried to delete your local Maven repo? Or at least the 
maven-metadata-*.xml files?

Regards,

-- 
Aaron Digulla
Magazine zum Globus
Informatik AW - Web
Eichstrasse 23
8045 Zuerich
Phone:  +41 58 455 26 20
Fax: +41 58 455 27 28

www.globus.ch
Mail: [EMAIL PROTECTED] 

"Barrie Treloar" <[EMAIL PROTECTED]> schrieb am 07.12.2006 08:07:49:

> 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]
> 


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

Reply via email to