[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Foo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.355s [INFO] Finished at: Mon Oct 22 00:30:13 CEST 2012 [INFO] Final Memory: 5M/77M [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExceptionIt seemed that my beloved free firewall Zonealarm was "protecting" me from the Maven-Repository. Until then I solved issues alike by unblocking the certain program in the menu
Firewall → Application Control → Programme geschützt
Maven does not have its own executable, but is Java-based. All entries labelled Java or similar where unblocked already. Why maven still gets blocked remains a myth to me. There is a workaround, though. You need to add the targeted repository as a safe zone. Here are a few screenshots (Please excuse my german client):
Step 1: Open the tab "Firewall" and select "Zonen anzeigen"
Step 2: Click "Hinzufügen >>", then "Host/Site" to add new zone
Step 3: Enter Maven-Repository Domain ("repo.maven.apache.org") enter a description and hit "Nachschlagen" to look up the Domain-IP. Press "Ok" and once again try to install your project. Maven should be able to download the required libraries now.


