You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/10/12 14:38:32 UTC

[PR] chore: camel-kamelet-main - remove the jackson-annotations known dependency and the unused jackson2-annotations-version (4.22.x) [camel]

Croway opened a new pull request, #27738:
URL: https://github.com/apache/camel/pull/27738

   ## Summary
   
   Removes the `com.fasterxml.jackson.annotation` known dependency mapping (added by CAMEL-25239) and the `jackson2-annotations-version` property in `parent/pom.xml`.
   
   The property was never used anywhere else, so it was left at `2.20` while Jackson moved to 2.22.x (`jackson-bom` 2.22.x manages `jackson-annotations` 2.22). Once the mapping started using it, `camel export` pinned `jackson-annotations:2.20` in the exported pom, overriding the runtime BOM. The application then fails at startup:
   
   ```
   java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonSerializeAs
       at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>
   ```
   
   `JsonSerializeAs` was added in jackson-annotations 2.21.
   
   Reproducer: a Java route importing `com.fasterxml.jackson.annotation.JsonProperty` that uses the `json-deserialize-action` Kamelet, exported with `camel export --runtime quarkus`.
   
   ## Why removing the mapping is safe
   
   - When the route runs or is exported, `jackson-annotations` is already on the Camel CLI classpath through `camel-jackson`, a dependency of `camel-kamelet-main`. Sources importing Jackson annotations compile without the mapping.
   - The exported project gets `jackson-annotations` transitively from `camel-jackson` / `camel-quarkus-jackson`, at the version managed by the runtime BOM, instead of a pinned one.
   
   ## Testing
   
   - `KnownDependenciesResolverTest` passes.
   
   _Claude Code on behalf of Croway_


-- 
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] chore: camel-kamelet-main - remove the jackson-annotations known dependency and the unused jackson2-annotations-version (4.22.x) [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27738:
URL: https://github.com/apache/camel/pull/27738#issuecomment-6128493721

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `dsl/camel-kamelet-main`
   - `parent`
   
   ---
   
   <details><summary>:microscope: Scalpel shadow comparison — Scalpel: 7 tested, 9 compile-only — current: 6 all tested</summary>
   
   [Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **16 affected modules** (current approach: 6).
   
   <details><summary>:warning: Modules only in Scalpel (10)</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-kamelet-main`
   - `camel-launcher`
   - `coverage`
   
   </details>
   
   Changed properties: jackson2-annotations-version
   
   **Skip-tests mode would test 7 modules** (1 direct + 6 downstream), **skip tests for 9** (generated code, meta-modules)
   
   <details><summary>Modules Scalpel would test (7)</summary>
   
   - `camel-jbang-mcp`
   - `camel-jbang-plugin-mcp`
   - `camel-jbang-plugin-route-parser`
   - `camel-jbang-plugin-tui`
   - `camel-jbang-plugin-validate`
   - `camel-kamelet-main`
   - `camel-launcher-container`
   
   </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 (16 modules)</summary>
   
   - Camel :: Coverage
   - Camel :: JBang :: Core
   - Camel :: JBang :: Integration tests
   - Camel :: JBang :: MCP
   - Camel :: JBang :: Main
   - Camel :: JBang :: Plugin :: Edit
   - Camel :: JBang :: Plugin :: Generate
   - Camel :: JBang :: Plugin :: Kubernetes
   - Camel :: JBang :: Plugin :: MCP
   - Camel :: JBang :: Plugin :: Route Parser
   - Camel :: JBang :: Plugin :: TUI
   - Camel :: JBang :: Plugin :: Testing
   - Camel :: JBang :: Plugin :: Validate
   - Camel :: Kamelet Main
   - Camel :: Launcher
   - Camel :: Launcher :: Container
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/38264400730)


-- 
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] chore: camel-kamelet-main - remove the jackson-annotations known dependency and the unused jackson2-annotations-version (4.22.x) [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27738:
URL: https://github.com/apache/camel/pull/27738#issuecomment-6128032495

   :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


Re: [PR] chore: camel-kamelet-main - remove the jackson-annotations known dependency and the unused jackson2-annotations-version (4.22.x) [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27738:
URL: https://github.com/apache/camel/pull/27738


-- 
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