jenkins maven repository configuration

24,744

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.

Share:
24,744
Mukun
Author by

Mukun

Updated on September 09, 2020

Comments

  • Mukun
    Mukun over 3 years

    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.