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

2 views
Skip to first unread message

mgonzalez@cloudbees.com (JIRA)

unread,
Apr 1, 2020, 4:32:03 PM4/1/20
to jenkinsc...@googlegroups.com
Manuel Gonzalez created an issue
 
Jenkins / Bug JENKINS-61771
Local Maven repository default path not working
Issue Type: Bug Bug
Assignee: Unassigned
Components: maven-plugin
Created: 2020-04-01 20:31
Environment: Jenkins Version: 2.176.3.2
Maven plugin version 3.4 (Maven Integration plugin)
Priority: Minor Minor
Reporter: Manuel Gonzalez

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages