remiborredon commented on issue #1292:
URL: https://github.com/apache/camel-karavan/issues/1292#issuecomment-2125089688
Thank you for the information.
Regarding my issue, I tried your solution but unfortunatelly, I saw that
Camel still try to use the default repo. I saw in the doc that I shall use the
settings.xml file to define a mirror using `camel.jbang.mavenSettings`.
I created a settings.xml file like this:
> <settings>
<mirrors>
<mirror>
<id>external-repository</id>
<url>https://myRepo/</url>
<mirrorOf>*</mirrorOf>
<name>Central mirror</name>
<username>MyUsername</username>
<password>MyPassword</password>
</mirror>
</mirrors>
</settings>
I then mounted the file like this in my docker compose file:
> volumes:
- "./settings.xml:/var/settings.xml"
And I checked that the file is present at the good place.
Finally, I set ``camel.jbang.mavenSettings=/var/settings` and I built the
image but unfortunatelly, I have the following error:
> 2024-05-22 15:27:20.733 INFO 15 --- [ main]
org.apache.camel.main.MainSupport : Apache Camel (JBang) 4.5.0 is starting
2024-05-22 15:27:20.797 WARN 15 --- [ main]
l.tooling.maven.MavenDownloaderImpl : Can't access /var/settings.xml. Skipping
Maven settings.xml configuration.
And of course, my configuration is not taken into account. Do you know what
I did wrong? Is there a special place for that file? The documentation speaks
about ~/.m2 but the folder is not present in the image.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]