Skip to content
Advertisement

How to specify credentials for custom maven private repo

I have used this article (https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063) for creating a custom maven repo, and it works. But now I have a problem with a private repo. How can I specify credentials for the private repo?

Advertisement

Answer

You can set in .m2/settings.xml file

Like This:

JavaScript

And in pom.xml:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement