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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With