Sounds like http://jira.codehaus.org/browse/MNG-5181
 
-Robert

> Date: Mon, 17 Oct 2011 14:29:06 +0200
> Subject: Re: maven failing to resolve artifact that exists in *local* 
> repository
> From: and...@hammar.net
> To: users@maven.apache.org
> 
> There was some recent discussion about offline and a bug in the Aether
> that's used in Maven 3.0.3. It's fixed in newer Aether so you could
> test manually upgrading Aether (replacing the Aether libs in the Maven
> installation).
> 
> /Anders
> 
> On Mon, Oct 17, 2011 at 13:46, Ben Smith-Mannschott
> <bsmith.o...@gmail.com> wrote:
> > I've seen this a number of times, and haven't yet figured out what's 
> > causing it:
> >
> > $ mvn -o install
> > ...
> > [ERROR] Failed to execute goal on project MYPROJECT: Could not resolve
> > dependencies for project SOME:DEPENDENCY:jar:11.7-bb-SNAPSHOT: The
> > repository system is offline but the artifact junit:junit:jar:4.8.2 is
> > not available in the local repository. -> [Help 1]
> > ...
> >
> > $ find ~/.m2 -name "*junit*4.8.2*"
> > /home/bsmith/.m2/repository/junit/junit/4.8.2/junit-4.8.2.pom.sha1
> > /home/bsmith/.m2/repository/junit/junit/4.8.2/junit-4.8.2.pom
> > /home/bsmith/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar.sha1
> > /home/bsmith/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
> >
> > WTF?
> >
> > I'm using maven 3.0.3. In this particular case I have *no*
> > settings.xml, so I'm getting whatever the defaults are.
> >
> > Building works fine if I'm online, though it does go download
> > junit-4.8.2.jar in that case, despite the fact that it's already got a
> > copy of it.
> >
> > Doing another offline build immediately after this successful online
> > build works. Wait a day or two, however, and I'm back to "I can't see
> > what's right in front of me." mode.
> >
> > Ideas?
> >
> > // Ben
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>                                         
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to