1. Remoterepositories like central, codehaus, etc. are accessed over Archiva (configured via a mirror for central in the settings.xml).
2. Direct internet access is disabled, HTTP Proxies for maven are not configured
Maven can only access remote repositories over archiva. There are plugins which have a <repositories> section in there pom, like the jspc-maven-plugin. If artifacts are missing, then maven tries to download the missing artifacts from repositories defined in the plugins pom first. This fails after a long timeout and then maven tries to download the artifact from central which is mirrored by archiva.
The problem is that the timeout is very long and cannot be configured. In my case a build can take more than two hours for a fresh installation.
It would be great if the order of repositories is inverted if a mirror is configured in the settings.xml. Or if you can set the order of repositories on the command line. Or if it is possible to set the connection timeouts.