[
https://issues.apache.org/jira/browse/CAMEL-24939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet reassigned CAMEL-24939:
---------------------------------------
Assignee: Guillaume Nodet
> [build] Fix dependency declarations in core/ and tooling/ subprojects
> ---------------------------------------------------------------------
>
> Key: CAMEL-24939
> URL: https://issues.apache.org/jira/browse/CAMEL-24939
> Project: Camel
> Issue Type: Task
> Affects Versions: 4.23.0
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Priority: Major
> Labels: build, dependency
> Fix For: 4.23.0
>
>
> Using the new {{-Pdep-check}} profile (added in CAMEL-22967),
> pilot:dependencies identified dependency declaration issues in the {{core/}}
> and {{tooling/}} subprojects.
> h2. core/ modules
> *camel-base* (core/camel-base):
> - Undeclared (used transitively): camel-util-json
> *camel-base-engine* (core/camel-base-engine):
> - Undeclared: camel-api, camel-management-api, camel-support,
> camel-util-json, camel-util
> *camel-cluster* (core/camel-cluster):
> - Undeclared: camel-management-api, camel-api, camel-support, camel-util
> *camel-core* (core/camel-core):
> - Unused (aggregator - intentional): camel-core-engine, camel-browse,
> camel-cluster, camel-controlbus, camel-dataformat, camel-direct, camel-log,
> camel-mock, camel-ref, camel-validator, camel-xpath, camel-xml-jaxb,
> camel-yaml-io
> _(Note: camel-core is a pure aggregation POM that re-exports these modules.
> The "unused" findings are expected and should be ignored for this module.)_
> *camel-core-catalog* (core/camel-core-catalog):
> - Undeclared: camel-util
> *camel-core-engine* (core/camel-core-engine):
> - Undeclared: slf4j-api, camel-core-model, camel-util-json
> *camel-core-languages* (core/camel-core-languages):
> - Undeclared: camel-api, camel-util, camel-util-json
> *camel-core-model* (core/camel-core-model):
> - Undeclared: slf4j-api, jakarta.xml.bind-api, camel-util-json
> *camel-core-processor* (core/camel-core-processor):
> - Undeclared: slf4j-api
> *camel-core-reifier* (core/camel-core-reifier):
> - Undeclared: slf4j-api
> *camel-health* (core/camel-health):
> - Unused: camel-core-engine
> - Undeclared: camel-api, camel-support, camel-util
> *camel-xml-io* (core/camel-xml-io):
> - Unused: camel-core-engine
> - Undeclared: camel-api, camel-core-model, camel-util
> *camel-xml-jaxb* (core/camel-xml-jaxb):
> - Unused: camel-core-engine
> - Undeclared: camel-api, camel-support, camel-util, camel-core-model
> *camel-xml-jaxp* (core/camel-xml-jaxp):
> - Unused: camel-xml-io-util
> - Undeclared: camel-api, camel-util, slf4j-api
> *camel-yaml-io* (core/camel-yaml-io):
> - Unused: camel-core-engine
> - Undeclared: camel-api, camel-core-model, camel-util
> h2. tooling/ modules
> *bom-generator-maven-plugin* (tooling/maven/bom-generator-maven-plugin):
> - Undeclared: maven-model (provided), javax.inject
> *camel-eip-documentation-enricher-maven-plugin*
> (tooling/maven/camel-eip-documentation-enricher-maven-plugin):
> - Undeclared: commons-lang3
> *camel-openapi-rest-dsl-generator* (tooling/openapi-rest-dsl-generator):
> - Unused: camel-core-engine
> - Undeclared: camel-api, camel-core-model, camel-support, camel-util,
> slf4j-api
> *camel-package-maven-plugin* (tooling/maven/camel-package-maven-plugin):
> - Unused: jakarta.annotation-api
> - Undeclared: maven-model (provided), maven-resolver-api, asm, javax.inject,
> commons-lang3
> h2. How to reproduce
> {{mvn test-compile
> eu.maveniverse.maven.plugins:pilot-plugin:0.4.0:dependencies -Pdep-check
> -Dlicense.skip -Dquickly --projects core/,tooling/}}
> h2. Notes
> - "Unused declared" findings in aggregator POMs (camel-core) are intentional
> and should be suppressed via the ignore list in the root POM.
> - For modules where camel-core-engine is flagged unused: these modules likely
> depend on camel-core (the aggregator) for test/runtime scope and declare
> camel-core-engine directly — the dependency should be changed to depend on
> camel-core instead, or camel-core-engine should be removed if truly unused.
> - All other undeclared transitive dependencies should be added explicitly to
> the relevant pom.xml.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)