.m2 on Jenkins
I have Apache Maven 3 installed on my C: drive and the file settings.xml
is in C:\users\jsmith\.m2\settings.xml
. When I run mvn clean install
for a project, all required dependencies are downloaded and saved in the folder C:\users\jsmith\.m2\repository
.
However, I also have Jenkins' War deployed in Tomcat 8 and when I do a build using Jenkins all the required dependencies are downloaded and stored directly in a folder C:\.m2
(automatically generated by Jenkins) instead C:\users\jsmith\.m2
.
How can I point my Jenkins to a folder C:\users\jsmith\.m2
so that I don't have two different folders .m2
created in two different locations?
Just and FYI. In Jenkins, when configuring the project build and in the Advanced section, I already have the following settings:
Settings file: Use default maven settings
Global settings file: Use default maven global settings
source to share
No one has answered this question yet
Check out similar questions: