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

   Backport of #27283 to the `camel-4.22.x` maintenance branch.
   
   ## Summary
   
   A Java or Groovy source that imports a class of a Camel component (other 
than the component class itself) failed to compile in `camel run` and `camel 
export`. For example, a route importing 
`org.apache.camel.component.aws2.s3.AWS2S3Constants` for the headers of the 
`aws-s3-source` kamelet failed because the known-dependencies map only each 
component by its component class — the import did not resolve before the 
kamelet that would bring the component was loaded.
   
   The known imports now also find a component by its package (shared parent 
packages and `org.apache.camel` are skipped). The 
`com.fasterxml.jackson.annotation` package is also mapped to 
`jackson-annotations`.
   
   Conflicts resolved by taking the cherry-pick version for 
`camel-jbang-running.adoc`, `KnownDependenciesResolver.java`, and 
`KnownDependenciesResolverTest.java` (all additive changes).
   
   ## Related
   
   - Main PR: #27283 (merged 2026-10-02)
   - JIRA: [CAMEL-25239](https://issues.apache.org/jira/browse/CAMEL-25239)
   - Reported by smongiar in #27206
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to