hi, i'm trying to create a free-style job with a Maven step. My problem is the folowing : I when running the maven command : mvn -o -s toto/settings.xml install The settings.xml contains the line : <settings><localrepository>toto/repository</localrepository></settings>
My workspace structure : jenkins/workspace/JOB/toto/settings.xml jenkins/workspace/JOB/toto/repository jenkins/workspace/JOB/toto/pom.xml jenkins/workspace/JOB/toto/module.... Jenkins build is failed : [INFO] Building PORTAIL ASSURES CORE [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-site-plugin Reason: POM 'org.apache.maven.plugins:maven-site-plugin' not found in repository: System is offline. org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-7 for project org.apache.maven.plugins:maven-site-plugin [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon Aug 27 11:29:53 CEST 2012 [INFO] Final Memory: 1M/57M [INFO] ------------------------------------------------------------------------ Build step 'Invoquer les cibles Maven de haut niveau' marked build as failure Finished: FAILURE Now, if i use the same job with the maven command : mvn -o -s settings.xml install The settings.xml contain the line : <settings><localrepository>repository</localrepository></settings> and the workspace structure : jenkins/workspace/JOB/settings.xml jenkins/workspace/JOB/repository jenkins/workspace/JOB/toto/pom.xml jenkins/workspace/JOB/toto/module.... the Jenkins job is successfull Do you know why jenkins does not success when the "repository" and "settings" file are not in the root workspace directory ? do you kwon how can i fix the build with the first architecture ? Thank for helping Best regard. sophie Dahan