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

Local Maven repository default path not working

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • Jenkins Version: 2.176.3.2
      Maven plugin version 3.4 (Maven Integration plugin)

      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

       

          [JENKINS-61771] Local Maven repository default path not working

          There are no comments yet on this issue.

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

              Created:
              Updated: