This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/example-infra-and-deps in repository https://gitbox.apache.org/repos/asf/camel-jbang-examples.git
commit 153d791415dcd8fde3c5c65228510c5f655cf2d9 Author: Claus Ibsen <[email protected]> AuthorDate: Wed Oct 7 21:52:00 2026 +0200 CAMEL-25426: aws-sqs needs the aws sqs infra; keycloak-security-rest adds camel-keycloak - cloud/aws-sqs: infraServices is aws sqs, as camel infra run aws alone fails with "service aws not found". - contracts/keycloak-security-rest: the security policy beans are Keycloak classes that no endpoint brings in, so the example failed to start with "keycloakPolicy ... was not found". Add camel.jbang.dependencies=camel:keycloak and remove the camel-k modeline, which Camel removed in 4.12. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m --- README.md | 2 +- camel-jbang-example-catalog.json | 2 +- cloud/README.md | 2 +- cloud/aws-sqs/metadata.json | 2 +- contracts/keycloak-security-rest/application.properties | 3 +++ contracts/keycloak-security-rest/rest-api.camel.yaml | 2 -- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 28a194f..e417eef 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ A cloud service, run locally through LocalStack and switched to the real thing b | Example | What you will see | Needs | |---|---|---| -| [AWS SQS](cloud/aws-sqs/) | Each of the three orders is put on an Amazon SQS queue called shipments and a courier route takes it off and logs the order, country and line count; locally the queue lives on the LocalStack that camel infra run aws sqs starts, and the same properties point at real AWS. | `camel infra run aws` | +| [AWS SQS](cloud/aws-sqs/) | Each of the three orders is put on an Amazon SQS queue called shipments and a courier route takes it off and logs the order, country and line count; locally the queue lives on the LocalStack that camel infra run aws sqs starts, and the same properties point at real AWS. | `camel infra run aws sqs` | ### [Showcase](showcase/) diff --git a/camel-jbang-example-catalog.json b/camel-jbang-example-catalog.json index 3991ceb..2175a3b 100644 --- a/camel-jbang-example-catalog.json +++ b/camel-jbang-example-catalog.json @@ -213,7 +213,7 @@ "orders/order-1003.json" ], "infraServices": [ - "aws" + "aws sqs" ], "order": 1 }, diff --git a/cloud/README.md b/cloud/README.md index 5abae25..33c02c0 100644 --- a/cloud/README.md +++ b/cloud/README.md @@ -5,7 +5,7 @@ A cloud service, run locally through LocalStack and switched to the real thing b | Example | What you will see | Needs | |---|---|---| -| [AWS SQS](aws-sqs/) | Each of the three orders is put on an Amazon SQS queue called shipments and a courier route takes it off and logs the order, country and line count; locally the queue lives on the LocalStack that camel infra run aws sqs starts, and the same properties point at real AWS. | `camel infra run aws` | +| [AWS SQS](aws-sqs/) | Each of the three orders is put on an Amazon SQS queue called shipments and a courier route takes it off and logs the order, country and line count; locally the queue lives on the LocalStack that camel infra run aws sqs starts, and the same properties point at real AWS. | `camel infra run aws sqs` | Start with [AWS SQS](aws-sqs/). diff --git a/cloud/aws-sqs/metadata.json b/cloud/aws-sqs/metadata.json index c7d160b..b6a2a40 100644 --- a/cloud/aws-sqs/metadata.json +++ b/cloud/aws-sqs/metadata.json @@ -29,7 +29,7 @@ "messaging" ], "infraServices": [ - "aws" + "aws sqs" ], "requiresDocker": true, "bundled": false diff --git a/contracts/keycloak-security-rest/application.properties b/contracts/keycloak-security-rest/application.properties index efb5651..951c7cc 100644 --- a/contracts/keycloak-security-rest/application.properties +++ b/contracts/keycloak-security-rest/application.properties @@ -24,6 +24,9 @@ keycloak.realm=camel keycloak.client.id=camel-client keycloak.client.secret=*********** +# The security policy beans are Keycloak classes, which no endpoint brings in +camel.jbang.dependencies=camel:keycloak + # Additional Camel configuration camel.main.name = KeycloakSecurityRestExample # Keycloak from camel infra takes port 8080, so the API listens on 8081 diff --git a/contracts/keycloak-security-rest/rest-api.camel.yaml b/contracts/keycloak-security-rest/rest-api.camel.yaml index 9d48099..49432d9 100644 --- a/contracts/keycloak-security-rest/rest-api.camel.yaml +++ b/contracts/keycloak-security-rest/rest-api.camel.yaml @@ -15,8 +15,6 @@ ## limitations under the License. ## --------------------------------------------------------------------------- -# camel-k: dependency=camel:keycloak - # Global exception handler for authorization failures # Handles CamelAuthorizationException to return proper HTTP status codes - onException:
