Closed remiborredon closed 2 months ago
Set camel.jbang.repos=https://myrepo
in application.properties
of the project.
Or in application.properties
in Templates project if you want to have this config as default.
BTW. 4.6.0 is not yet released ;-)
Thanks a lot. That's weared, here is the beginning of my docker-compose file:
`name: karavan
services:
karavan: container_name: karavan image: ghcr.io/apache/camel-karavan:4.6.0 ports:
I must also provide credential to access the server, I suppose that I must use the variable "camel.jbang.mavenSettings" right?
The latest release was 4.5.0 You could find releases here https://github.com/apache/camel-karavan/releases
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:
external-repository https://myRepo/ * Central mirror MyUsername MyPassword
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.
Thank you for this link! I created a new docker image integrating my settings.xml file but it looks that the karavan.devmode.image field is not taken into account when set in the application.properties file of my project. Is it the correct place ? I was not able to find any reference to this field in the documentation.
Remi
BORREDON
Software Development Engineer MPU
From: Marat Gubaidullin @.> Sent: Wednesday, May 22, 2024 9:50 PM To: apache/camel-karavan @.> Cc: BORREDON Remi @.>; Author @.> Subject: Re: [apache/camel-karavan] Add the possibility to change the maven repository used to build the images (Issue #1292)
SECURITY WARNING: This email originated outside of Alstom. DO NOT open any links /attachments unless you've verified the sender.
- Reply to this email directly, view it on GitHubhttps://github.com/apache/camel-karavan/issues/1292#issuecomment-2125630385, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWECA4IMWEX6J57ESS2FYQDZDTZHDAVCNFSM6AAAAABIDSVITCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVGYZTAMZYGU. You are receiving this because you authored the thread.Message ID: @.**@.>>
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
karavan.devmode.image
should be set for Karavan application itself, not for the project.
Describe the solution you'd like
Hello,
I'm beginning to use Camel Karavan (v4.6.0) but when I try to run a simple route with for example a paho client, I obtain that error:
I know this is due to our security system and we have a server that can act as a mirror to point to maven repos. Unfortunatelly, I am not able to find how to configure this in the documentation. Is it possible? If it is possible, I would suggest to add a line about this in the readme.
Thanks in advance for your help :-)
Variant
Web Application
Container Management (if applicable)
Docker