gnodet opened a new pull request, #26857:
URL: https://github.com/apache/camel/pull/26857
## Summary
Use `pilot:dependencies -Dpilot.action=fix` to detect and fix
used-but-undeclared and unused-but-declared dependencies across `components/`
subprojects (CAMEL-24939).
Continuation of #26792 (which covered `core/` and `tooling/`).
## Scope
**439 component modules processed** covering all modules for which bytecode
analysis could be run with cached 4.23.0-SNAPSHOT artifacts.
### What was fixed (common patterns)
- Add explicit declarations for `camel-api`, `camel-support`, `camel-util`,
`camel-util-json`, `camel-management-api` used transitively
- Add missing `slf4j-api` declarations
- Remove unused transitively-pulled dependencies where direct code usage is
absent
- Move dependencies to correct scopes (compile vs test)
- Fix test-scoped dependency ordering relative to `<!-- testing -->` markers
### Modules skipped (deferred to follow-up)
~35 modules required `test-jar` artifacts or uncompiled Maven plugin source
not available in the local snapshot cache. These will be addressed separately:
- **test-jar blockers**: `camel-spring-xml`, `camel-cxf-rest`,
`camel-cxf-soap`, `camel-cxf-spring-rest`, `camel-cxf-spring-soap`,
`camel-http`, `camel-groovy`, `camel-jsonpath`, `camel-opentelemetry`,
`camel-opentelemetry2`, `camel-infinispan`, `camel-infinispan-common`,
`camel-infinispan-embedded`, `camel-micrometer-observability`, and others
- **Maven plugins**: `camel-salesforce-maven-plugin`,
`camel-servicenow-maven-plugin` (require compiled sources)
## Verification
```shell
# Report mode — no issues after fix (on processable modules):
mvn eu.maveniverse.maven.plugins:pilot-plugin:0.4.0:dependencies \
-Pdep-check -f components/pom.xml -Dpilot.skipTestScope=true
-Dlicense.skip -Dquickly
```
Closes [CAMEL-24939](https://issues.apache.org/jira/browse/CAMEL-24939).
---
_Hermes Agent (Claude Sonnet 4.6) on behalf of Guillaume Nodet_
--
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]