You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jurek Blaszczyk <yo...@gmail.com> on 2006/02/19 10:39:50 UTC

M2 central repository skipped

If I define in pom.xml my local repository but shut it down than Maven
doesn' try to download dependency from central repository and throws an
exception.
If I change order of repositories or run my local repository but delete
artifact from it everything works fine.
It looks like M2 skips looking for artifact in case of connection error.
 
pom.xml:
 ...
	<repositories>
		<repository>
			<id>local-repository</id>
			<name>Local Repository</name>
			<url>http://gf.infovide.pl/shark/maven</url>
		</repository>
		<repository>
			<id>central</id>
			<name>Maven Repository</name>
			<url>http://repo1.maven.org/maven2</url>
		</repository>
	</repositories>
...

Output:

Unable to get dependency information: Unable to read the metadata file for
artifact 'aopalliance:aopalliance:jar': Error getting POM for
'aopalliance:aopalliance' from the repository: Error transferring file
  aopalliance:aopalliance:pom:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  local-repository (http://gf.infovide.pl/shark/maven)

  aopalliance:aopalliance:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  local-repository (http://gf.infovide.pl/shark/maven)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org