Pulling dependencies from protected repositories #1795
-
I am running Jbang in Docker container (atlering Karavan devmode). I want to download a custom version of CamelJbang to test it. It is located in a private repository, which can be accessed using username/password auth.
I am trying to copy settings.xml from local machine to different folders of Docker container for JBang to use it, but it does not seem to. The proof is: commented mvn commands do work and successfully download needed dependencies, but JBang fails to do so. Here is my settings.xml, which I am passing to Docker:
And these are headers of the file I am trying to install:
If I understood correctly, JBang must use /karavan/.m2/settings.xml file for authentication, because it is a working directory of user, created in Docker. JBang from container produces the following error:
What am I missing? P.S. I checked the dependency location in artifactory. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Does it work locally without docker in the mix? |
Beta Was this translation helpful? Give feedback.
-
I noticed the server IDs in settings.xml does not match your //REPOS IDs. Jbang (and maven) looks up server settings by Id, not by URL. So change "krok" |
Beta Was this translation helpful? Give feedback.
I noticed the server IDs in settings.xml does not match your //REPOS IDs. Jbang (and maven) looks up server settings by Id, not by URL.
So change "krok"
To the right Id.