MarioNote

September 19, 2011

Maven 2.2.1 – [WARNING] repository metadata for: ‘org.apache.maven.plugins’ could not be retrieved from repository

Filed under: Java,XML — mariojump @ 10:22 pm
Tags:

On Maven 2.2.1, I had trouble when executing, “mvn archetype:generate”, with the following errors.

[INFO] Searching repository for plugin with prefix: ‘archetype’.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: ‘org.apache.maven.plugins’ could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out
[INFO] Repository ‘central’ will be blacklisted

Finally, it turned out that the proxies section in settings.xml was not commented/uncommented properly. Windows XP Firewall or security software had nothing to do with the error.

Blog at WordPress.com.