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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]