Maybe you need to configure a web proxy for Maven to use? You do that in settings.xml.
/Anders (mobile) Den 11 apr 2011 15.33 skrev "Collard, Pascal" <pascal.coll...@bvdinfo.com>: > Hi; > I use Maven2 to build my JAVA package and run tests within a CI > (Jenkins / Hudson, Bamboo, ..) and got errors about repo not being accessible. > > I had no problem before with my script but: > - network policies have changed (I assume that Jenkins/Maven can't > connect to the repository because of these now) > - I installed a new computer and it has no local .m2 content so far > > Can anyone let me know if they face the same issue or point me where/what I should check at? > > Here is the log of the CI. > > > Executing Maven: -N -B -f C:\Program Files\Jenkins\jobs\Test job > \workspace\pom.xml clean test > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building functional tests > [INFO] task-segment: [clean, test] > [INFO] > ------------------------------------------------------------------------ > Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-pl... > [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean- > plugin:pom:2.2' from repository central (http://repo1.maven.org/ > maven2): Error transferring file: Connection timed out: connect > [JENKINS] Archiving C:\Program Files\Jenkins\jobs\Test job\workspace > \pom.xml to C:\Program Files\Jenkins\jobs\Test job\modules > \....................\functional-tests\1.0-SNAPSHOT\functional- > tests-1.0-SNAPSHOT.pom > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > Project ID: org.apache.maven.plugins:maven-clean-plugin > > Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in > repository: Unable to download the artifact from any repository > > org.apache.maven.plugins:maven-clean-plugin:pom:2.2 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > for project org.apache.maven.plugins:maven-clean-plugin > > ------------------------------------------------------------------------ > > Thanks