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

Local Maven repository default path not working

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Jenkins Version: 2.176.3.2
      Maven plugin version 3.4 (Maven Integration plugin)
    • Similar Issues:

      Description

      The maven dependencies are not being downloaded to the default ~/m2/repository location when this option is setup to default. Instead, the local repository is sent to the workspace folder "jenkins_home/workspace/job_name/".

      The only way to avoid this was setting the path in the setting.xml file, although this was not an option as this would only resolve for Windows or Linux agents, and therefore the local repository path was set to ${user.home}/.m2/repository, which is resolved by Maven as:

      Windows OS: C:/Users/<username>/.m2/repository
      Linux OS: /home/<username>/.m2/repository

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              mgonzalez Manuel Gonzalez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: