| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>components</artifactId> |
| <version>3.14.3-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-cdi</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Camel :: CDI</name> |
| <description>Using Camel with CDI</description> |
| |
| <properties> |
| <firstVersion>2.10.0</firstVersion> |
| <label>java</label> |
| <title>CDI</title> |
| |
| <camel.osgi.provide.capability> |
| osgi.cdi.extension;osgi.cdi.extension="org.apache.camel.cdi"; |
| version:Version="${camel.osgi.version}"; |
| aries.cdi.extension.bean.classes:List<String>="org.apache.camel.cdi.CdiCamelFactory,org.apache.camel.cdi.CdiEventComponent"; |
| uses:="javax.annotation,javax.enterprise.event,javax.enterprise.inject.spi", |
| osgi.service;objectClass:List<String>="javax.enterprise.inject.spi.Extension", |
| osgi.service;objectClass:List<String>="javax.enterprise.inject.spi.Extension"; |
| uses:="javax.enterprise.inject.spi"; |
| osgi.cdi.extension="org.apache.camel.cdi"; |
| service.scope=prototype;service.vendor="Apache Software Foundation"; |
| version:Version="${camel.osgi.version}"; |
| effective:=active, |
| osgi.serviceloader;osgi.serviceloader="javax.enterprise.inject.spi.Extension"; |
| register:="org.apache.camel.cdi.CdiCamelExtension"; |
| uses:="javax.enterprise.inject.spi"; |
| osgi.cdi.extension="org.apache.camel.cdi"; |
| service.scope=prototype; |
| service.vendor="Apache Software Foundation"; |
| version:Version="${camel.osgi.version}" |
| </camel.osgi.provide.capability> |
| <camel.osgi.require.capability> |
| osgi.extender;filter:="(&(osgi.extender=osgi.cdi)(version>=1.0.0)(!(version>=2.0.0)))", |
| osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))", |
| osgi.contract;osgi.contract=JavaInject;filter:="(&(osgi.contract=JavaInject)(version=1.0.0))", |
| osgi.contract;osgi.contract=JavaCDI;filter:="(&(osgi.contract=JavaCDI)(version=2.0.0))", |
| osgi.contract;osgi.contract=JavaAnnotation;filter:="(&(osgi.contract=JavaAnnotation)(version=1.3.0))" |
| </camel.osgi.require.capability> |
| <camel.osgi.import> |
| !org.apache.camel.cdi.*, |
| !org.apache.deltaspike.cdise.api.*, |
| javax.xml.bind*;version="[2.2,3.0);optional=true", |
| ${camel.osgi.import.defaults}, |
| * |
| </camel.osgi.import> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| |
| <!-- test dependencies --> |
| |
| <dependency> |
| <groupId>org.jboss.shrinkwrap.descriptors</groupId> |
| <artifactId>shrinkwrap-descriptors-bom</artifactId> |
| <version>${shrinkwrap-descriptors-version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.arquillian</groupId> |
| <artifactId>arquillian-bom</artifactId> |
| <version>${arquillian-version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| |
| </dependencies> |
| </dependencyManagement> |
| <dependencies> |
| <!-- compile dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-main</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-mock</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-bean</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-jta</artifactId> |
| </dependency> |
| |
| <!-- DeltaSpike is only used to provide Main support thus optional --> |
| <dependency> |
| <groupId>org.apache.deltaspike.cdictrl</groupId> |
| <artifactId>deltaspike-cdictrl-api</artifactId> |
| <version>${deltaspike-version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- provided dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-xml</artifactId> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-xml-jaxb</artifactId> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.transaction</groupId> |
| <artifactId>javax.transaction-api</artifactId> |
| <version>${jta-api-1.2-version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- test dependencies --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cloud</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-seda</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-direct</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-rest</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-ref</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| <version>${slf4j-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.arquillian.junit</groupId> |
| <artifactId>arquillian-junit-container</artifactId> |
| <version>${arquillian-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.shrinkwrap.descriptors</groupId> |
| <artifactId>shrinkwrap-descriptors-depchain</artifactId> |
| <type>pom</type> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-package-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>jaxb-list</id> |
| <goals> |
| <goal>generate-jaxb-list</goal> |
| </goals> |
| <phase>process-classes</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-generated-resources-jaxb</id> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| <phase>process-classes</phase> |
| <configuration> |
| <resources> |
| <resource> |
| <directory>${basedir}/target/generated/camel/jaxb</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>weld-3.0</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <!-- provided dependencies --> |
| |
| <dependency> |
| <groupId>javax.enterprise</groupId> |
| <artifactId>cdi-api</artifactId> |
| <version>${cdi-api-2.0-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- test dependencies --> |
| |
| <dependency> |
| <groupId>org.jboss.weld</groupId> |
| <artifactId>weld-core-impl</artifactId> |
| <version>${weld3-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-weld-embedded</artifactId> |
| <version>${arquillian-weld-embedded-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| </profile> |
| |
| |
| <profile> |
| <id>owb-1.0</id> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/*Cdi12Test.java</exclude> |
| <exclude>**/*Cdi20Test.java</exclude> |
| <!-- OWB does not call the InjectionTarget#preDestroy method --> |
| <exclude>**/UnstoppedCamelContext*Test.java</exclude> |
| <!-- Reactivate when OWB-1155 is fixed --> |
| <exclude>**/ProgrammaticLookupTest.java</exclude> |
| <!-- Reactivate when OWB-1126 is fixed --> |
| <exclude>**/Xml*Test.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <!-- provided dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jcdi_1.0_spec</artifactId> |
| <version>${geronimo-jcdi-1.0-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-atinject_1.0_spec</artifactId> |
| <version>${geronimo-atinject-1.0-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-interceptor_1.1_spec</artifactId> |
| <version>${geronimo-interceptor-1.1-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- test dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.openwebbeans.arquillian</groupId> |
| <artifactId>owb-arquillian-standalone</artifactId> |
| <version>${openwebbeans1-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openwebbeans</groupId> |
| <artifactId>openwebbeans-impl</artifactId> |
| <version>${openwebbeans1-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>owb-1.2</id> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/*Cdi20Test.java</exclude> |
| <!-- Reactivate when OWB-1155 is fixed --> |
| <exclude>**/ProgrammaticLookupTest.java</exclude> |
| <!-- Reactivate when OWB-1126 is fixed --> |
| <exclude>**/Xml*Test.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <!-- provided dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jcdi_1.1_spec</artifactId> |
| <version>${geronimo-jcdi-1.1-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-atinject_1.0_spec</artifactId> |
| <version>${geronimo-atinject-1.0-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-annotation_1.2_spec</artifactId> |
| <version>${geronimo-annotation-1.2-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-interceptor_1.2_spec</artifactId> |
| <version>${geronimo-interceptor-1.2-spec-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- test dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.openwebbeans.arquillian</groupId> |
| <artifactId>owb-arquillian-standalone</artifactId> |
| <version>${openwebbeans-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openwebbeans</groupId> |
| <artifactId>openwebbeans-impl</artifactId> |
| <version>${openwebbeans-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>jdk9s-weld-3.0</id> |
| <activation> |
| <jdk>[9,)</jdk> |
| </activation> |
| |
| <dependencies> |
| |
| <!-- provided dependencies --> |
| |
| <dependency> |
| <groupId>javax.enterprise</groupId> |
| <artifactId>cdi-api</artifactId> |
| <version>${cdi-api-2.0-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- test dependencies --> |
| |
| <dependency> |
| <groupId>org.jboss.weld</groupId> |
| <artifactId>weld-core-impl</artifactId> |
| <version>${weld3-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-weld-embedded</artifactId> |
| <version>${arquillian-weld-embedded-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <reuseForks>true</reuseForks> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.10</version> |
| <executions> |
| <execution> |
| <id>copy-jaxb</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>jakarta.xml.bind</groupId> |
| <artifactId>jakarta.xml.bind-api</artifactId> |
| <version>${jakarta-jaxb-version}</version> |
| <overWrite>false</overWrite> |
| <outputDirectory>${project.basedir}/target/java9</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.glassfish.jaxb</groupId> |
| <artifactId>jaxb-runtime</artifactId> |
| <version>${glassfish-jaxb-runtime-version}</version> |
| <overWrite>false</overWrite> |
| <outputDirectory>${project.basedir}/target/java9</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |