[
https://issues.apache.org/jira/browse/CAMEL-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau updated CAMEL-6337:
--------------------------------------
Attachment: camel-6447.patch
Adding provided scope for API jars.
Note: jaxb-impl comes from parent pom. Same note: i think it should be scoped
provided in camel parent pom but i let you judging it regading all components
(not directly linked to this particular issue).
> camel-cdi dependencies are wrong for most cases
> -----------------------------------------------
>
> Key: CAMEL-6337
> URL: https://issues.apache.org/jira/browse/CAMEL-6337
> Project: Camel
> Issue Type: Improvement
> Components: camel-cdi
> Affects Versions: 2.11.0
> Reporter: Romain Manni-Bucau
> Priority: Minor
> Fix For: Future
>
> Attachments: camel-6447.patch
>
>
> Hi,
> because of its main camel-cdi import:
> <exclusions> <!-- provided by the container -->
> <exclusion>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-atinject_1.0_spec</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-jcdi_1.0_spec</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-interceptor_1.1_spec</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> </exclusions
> It is wrong since all containers (embedded or not) will provide it. The only
> case where it is relevant is the main and IMO it is better to use scope
> provided and ask for inclusion when needed (main). The main case shouldn't
> drive any dependency.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira