I'm using the Maven2 build process to build a project with multiple modules. I execute the build from the parent pom. Each module builds as expected, however the last module always fails to upload to our repository. It simply times out. I'm running a custom installation of maven installed at /usr/local/maven2 and have configured the build process to use it. Specifically version 2.2.1. If I log in as the teamcity agent's user, I can use the same maven deploy command to successfully build and deploy all the modules. Any ideas why I can do this from the command line, but when running within Teamcity it fails?