Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins maven repository configuration

I am new to maven and Jenkins, I am trying to build a maven 3 project. I have maven in c drive and I moved the repository to d drive. But when I configure a build in Jenkins, it is creating its own repository(I think so) Now How to configure jenkis, so that it can use my repository in D drive.

Hope I made sense.

like image 253
Mukun Avatar asked Sep 25 '12 12:09

Mukun


1 Answers

you need to adjust the settings.xml to point out which repository to use.

C:.m2\m2repository.

Further more you should make sure which settings.xml the maven is using, if you dont have any specific user settings.xml the maven will start using the settings.xml which is at maven configuration directory, which will be /conf/settings.xml. The hierarchy for settings.xml is user .m2 directory and if it could not find that, it will try to find the one in maven home/conf/settings.xml.

Hope this helps.

like image 197
Balakumar PG Avatar answered Sep 19 '22 01:09

Balakumar PG