Configure JFrog artifact repository for Maven project

301 Views Asked by At

I'm working on some generic template which I need to use Jfrog artifactory for the repository. I have gone through their documents they are specified to use setting.xml (need to add report info) for maven, but I don't want to force down the users to change there settings.xml who are going to use my template. So i want it should be in my parent pom to access this and use further.

1

There are 1 best solutions below

2
J Fabian Meier On

While you can define repositories in (parent) POMs, the settings.xml often overrides these settings.

If the settings.xml has a <mirror>*</mirror> entry, everything from the (parent) POM will be useless.

So the standard way to go is to change the settings.xml.