I'm using IntelliJ and I'm working with JAR libraries sitting behind a password protected Nexus repository. I frequently need to inspect sources, but IntelliJ fails to find them because (it seems) it doesn't support password protected repos (at least, it failed when I attempted to add it using Build Tools -> Maven -> Repositories, not asking for a password).
If there any workaround?
After some research I learned that I could run a local Nexus instance on my machine set it up in a way that proxies the corporate Nexus... but that seems overkill. Is there any a simple proxy I can install? Alternatively: if I code a simple http server that will just forward requests adding the http auth headers, would that work?
Some clarifications:
You should create a .m2/settings.xml file with repository config. IntelliJ respects these settings.
See also: https://maven.apache.org/settings.html and specifically https://maven.apache.org/settings.html#Servers
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