You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/10/19 10:01:25 UTC
[PR] CAMEL-25768: camel-jbang - camel run adds camel-openapi-java for the API description of a code-first REST DSL [camel]
davsclaus opened a new pull request, #28100:
URL: https://github.com/apache/camel/pull/28100
[CAMEL-25768](https://issues.apache.org/jira/browse/CAMEL-25768): a code-first REST DSL with an API description failed to start with `camel run`:
```yaml
- restConfiguration:
bindingMode: json
apiContextPath: openapi
```
```
FailedToStartRouteException: Failed to start route: route1 because: java.lang.IllegalStateException:
Cannot find RestApiProcessorFactory in Registry or classpath (such as the camel-openapi-java component)
```
The API description is served by the `rest-api` component, which needs camel-openapi-java. `DependencyDownloaderComponentResolver` downloaded camel-openapi-java only for the contract-first `rest-openapi`, so users had to add `camel.jbang.dependencies=camel:openapi-java`.
## What
- The `rest-api` component downloads camel-openapi-java too.
- The http producer stays a download of `rest-openapi` only.
Found while writing the contracts/rest-code-first example (apache/camel-jbang-examples#118). In a benchmark of Oct 18-19 2026, the step that adds the API description to that example failed for local models.
## Tests
- New `DependencyDownloaderComponentResolverTest`: it resolves a component with a recording downloader and checks the artifacts asked for.
- `rest-api` asks for camel-openapi-java, and not camel-http.
- `rest-openapi` asks for both.
- Without the fix, the `rest-api` test fails.
- All tests of camel-kamelet-main pass (58, 8 skipped).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-25768: camel-jbang - camel run adds camel-openapi-java for the API description of a code-first REST DSL [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #28100:
URL: https://github.com/apache/camel/pull/28100#issuecomment-6267886944
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `dsl/camel-kamelet-main`
---
<details><summary>:microscope: Scalpel shadow comparison — Scalpel: 5 of 706 tested, 9 compile-only — current: 5 all tested</summary>
[Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **5 affected modules** (current approach: 5).
**Skip-tests mode would test 5 modules** (1 direct + 5 downstream), **skip tests for 9** (generated code, meta-modules)
<details><summary>Modules Scalpel would test (5)</summary>
- `camel-jbang-mcp` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-mcp` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-tui` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-validate` ← downstream of org.apache.camel:camel-jbang-core
- `camel-launcher-container` ← downstream of org.apache.camel:camel-launcher
</details>
<details><summary>Modules with tests skipped (9)</summary>
- `camel-jbang-core`
- `camel-jbang-it`
- `camel-jbang-main`
- `camel-jbang-plugin-edit`
- `camel-jbang-plugin-generate`
- `camel-jbang-plugin-kubernetes`
- `camel-jbang-plugin-test`
- `camel-launcher`
- `coverage`
</details>
> :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
</details>
<details><summary>All tested modules (15 modules, 2m 52s total)</summary>
**Total reactor time:** 2m 52s
| Module | Duration | Status |
| --- | --- | --- |
| Camel :: Launcher | 51.1s | SUCCESS |
| Camel :: JBang :: MCP | 41.4s | SUCCESS |
| Camel :: JBang :: Plugin :: Validate | 28.8s | SUCCESS |
| Camel :: Kamelet Main | 14.2s | SUCCESS |
| Camel :: JBang :: Plugin :: Kubernetes | 13.0s | SUCCESS |
| Camel :: JBang :: Plugin :: Testing | 12.2s | SUCCESS |
| Camel :: Coverage | 5.2s | SUCCESS |
| Camel :: JBang :: Plugin :: Generate | 1.8s | SUCCESS |
| Camel :: JBang :: Plugin :: Edit | 1.3s | SUCCESS |
| Camel :: JBang :: Integration tests | 1.0s | SUCCESS |
| Camel :: JBang :: Plugin :: MCP | 0.9s | SUCCESS |
| Camel :: Launcher :: Container | 0.8s | SUCCESS |
| Camel :: JBang :: Main | 0.8s | SUCCESS |
| Camel :: JBang :: Core | n/a | |
| Camel :: JBang :: Plugin :: TUI | n/a | |
**Top 20 slowest modules:**
- `Camel :: Launcher` (51.1s)
- `Camel :: JBang :: MCP` (41.4s)
- `Camel :: JBang :: Plugin :: Validate` (28.8s)
- `Camel :: Kamelet Main` (14.2s)
- `Camel :: JBang :: Plugin :: Kubernetes` (13.0s)
- `Camel :: JBang :: Plugin :: Testing` (12.2s)
- `Camel :: Coverage` (5.2s)
- `Camel :: JBang :: Plugin :: Generate` (1.8s)
- `Camel :: JBang :: Plugin :: Edit` (1.3s)
- `Camel :: JBang :: Integration tests` (1.0s)
- `Camel :: JBang :: Plugin :: MCP` (0.9s)
- `Camel :: Launcher :: Container` (0.8s)
- `Camel :: JBang :: Main` (0.8s)
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/39234410594)
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-25768: camel-jbang - camel run adds camel-openapi-java for the API description of a code-first REST DSL [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #28100:
URL: https://github.com/apache/camel/pull/28100
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-25768: camel-jbang - camel run adds camel-openapi-java for the API description of a code-first REST DSL [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #28100:
URL: https://github.com/apache/camel/pull/28100#issuecomment-6264884478
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org