I tend to get annoyed with how badly Maven behaves when it comes to using the network for downloading dependencies. I got several issues with it, the output below illustrates one of them in all it’s glory.
` Downloading: http://people.apache.org/repo/m2-incubating-repository//org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: http://repo1.maven.org/eclipse//org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: http://m2.safehaus.org/org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext//org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: http://s3.amazonaws.com/maven.springframework.org/osgi/org/springframework/spring-core/2.5/spring-core-2.5.jar Downloading: http://repo1.maven.org/maven2/org/springframework/spring-core/2.5/spring-core-2.5.jar 264K downloaded Downloading: http://people.apache.org/repo/m2-incubating-repository//org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: http://repo1.maven.org/eclipse//org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: http://m2.safehaus.org/org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext//org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: http://s3.amazonaws.com/maven.springframework.org/osgi/org/springframework/spring-context/2.5/spring-context-2.5.jar Downloading: http://repo1.maven.org/maven2/org/springframework/spring-context/2.5/spring-context-2.5.jar 431K downloaded `
So, you found spring-core-2.5.jar on http://repo1.maven.org. Now you’re looking for a JAR in the same groupId, how about looking it the same server first? No, I have such an urge for 404:s that I have to check all the servers that previously seemed to have no clue about that exact groupId. Come on.
Technorati Tags: maven
tags: Build - Maven