Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camel using Jbang | AWS Code Artifactory #1782

Open
yuvanmytri opened this issue Apr 2, 2024 · 2 comments
Open

Camel using Jbang | AWS Code Artifactory #1782

yuvanmytri opened this issue Apr 2, 2024 · 2 comments
Labels
ideas Some idea/suggestion around jbang behavior/feature set

Comments

@yuvanmytri
Copy link

Is it possible to work with AWS Code Artifactory with Camel JBang?

I am trying to execute below.

camel run --name example timer2.camel.yaml Test.java --deps=io.confluent:kafka-protobuf-serializer:7.4.0,com.google.protobuf:protobuf-java:3.25.1,com.google.protobuf:protobuf-java-util:3.25.1,com.googlecode.protobuf-java-format:protobuf-java-format:1.4,com.test.camelk.utils:kafka-utils:0.0.5 --properties=application.properties --maven-settings=./settings.xml --repos=https://packages.confluent.io/maven/,https://test-gi-962144292115.d.codeartifact.us-east-1.amazonaws.com/maven/test-gi-artifacts/

https://github.com/ciseldevops/codeartifact-demo/blob/master/.m2/settings.xml

It keeps failing with 401 error.

Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: com.awmay.camelk.utils:kafka-utils:pom:0.0.5 (absent): Could not transfer artifact com.test.camelk.utils:kafka-utils:pom:0.0.5 from/to custom2 (https://test-gi-962144292115.d.codeartifact.us-east-1.amazonaws.com/maven/test-gi-artifacts/): status code: 401, reason phrase: Unauthorized (401)

@yuvanmytri yuvanmytri added the ideas Some idea/suggestion around jbang behavior/feature set label Apr 2, 2024
@maxandersen
Copy link
Collaborator

I don't know aws artifactory but jbang will/should honor credentials configured in maven ~/.m2/settings.xml if it's present.

@davsclaus
Copy link
Contributor

Try with latest camel-jbang release as we are using a newer maven downloader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ideas Some idea/suggestion around jbang behavior/feature set
Projects
None yet
Development

No branches or pull requests

3 participants