Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19188

Unable to set local maven repository at Jenkins or Job level

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None

      Current version of Jenkins used: 1.527

      I am unable to set the "Local Maven Repository" to either "Local to the executor" or "Local to the workspace" at the Jenkins system level. I also cannot configure this at the job level under "Use private Maven repository".

      As a work around, I have tried to override the local repo by setting localRepository in the settings.xml file to /home/jenkins/.m2 (which does exist), however this does not seem to get used during "Parsing POMS" either.

      The resulting log output is (which reflects the default ~/.m2 location):

      Parsing POMs
      ERROR: Failed to create /usr/share/tomcat6/.m2
      Finished: FAILURE

      Note: I have tested this same setup locally using Jenkins 1.519 and it correctly overrides the local repo as I would expect:

      [DEBUG] (f) localRepository = id: local
      url: file:///Users/jenna.pederson/.jenkins/jobs/my-maven-jenkins-job/workspace/.repository

          [JENKINS-19188] Unable to set local maven repository at Jenkins or Job level

          Jenna Pederson created issue -
          Marcelo Rebasti made changes -
          Assignee New: Jenna Pederson [ jennapederson ]
          Oleg Nenashev made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Indra Gunawan made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150636 ] New: JNJira + In-Review [ 186145 ]

            jennapederson Jenna Pederson
            jennapederson Jenna Pederson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: