| <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-karaf-tests</artifactId> |
| <version>4.8.2-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>camel-karaf-examples-test</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache Camel :: Karaf :: Tests :: Examples</name> |
| |
| <modules> |
| <module>mixed</module> |
| <module>java-dsl-only</module> |
| <module>blueprint-dsl-only</module> |
| </modules> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>karaf-bom</artifactId> |
| <version>${karaf-version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.itests</groupId> |
| <artifactId>common</artifactId> |
| <version>${karaf-version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-integration-test</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-core-osgi</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-engine</artifactId> |
| <version>${camel-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-mock</artifactId> |
| <version>${camel-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-api</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.component</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.component.annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <!-- Provide the KarafTestSupport --> |
| <dependency> |
| <groupId>org.apache.karaf.itests</groupId> |
| <artifactId>common</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Define the Apache Karaf version to download and use for the test --> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <scope>test</scope> |
| <type>tar.gz</type> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>org.apache.karaf.client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.ops4j.pax.logging</groupId> |
| <artifactId>pax-logging-logback</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- Required to use shell commands in the tests --> |
| <dependency> |
| <groupId>org.apache.karaf.shell</groupId> |
| <artifactId>org.apache.karaf.shell.core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Provide the PaxExam Karaf support --> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-container-karaf</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Provide the PaxExam JUnit extension --> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-junit4</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-atinject_1.0_spec</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.awaitility</groupId> |
| <artifactId>awaitility</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix.bundles</groupId> |
| <artifactId>org.apache.servicemix.bundles.hamcrest</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- generates an osgi repository added to the test karaf containing the dependencies--> |
| <plugin> |
| <groupId>org.apache.servicemix.tooling</groupId> |
| <artifactId>depends-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-depends-file</id> |
| <goals> |
| <goal>generate-depends-file</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <inherited>true</inherited> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Export-Package> |
| org.apache.karaf.camel.examples.test;version=${project.version} |
| </Export-Package> |
| <Import-Package> |
| org.apache.camel*;${camel-osgi-import-camel-version}, |
| * |
| </Import-Package> |
| </instructions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>cleanVersions</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>cleanVersions</goal> |
| </goals> |
| <configuration> |
| <versions> |
| <karaf.osgi.version>${project.version}</karaf.osgi.version> |
| </versions> |
| </configuration> |
| </execution> |
| <execution> |
| <id>bundle</id> |
| <phase>package</phase> |
| <goals> |
| <goal>bundle</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>default-test</id> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <phase>integration-test</phase> |
| <configuration> |
| <excludes> |
| <exclude>none</exclude> |
| </excludes> |
| <includes> |
| <include>**/*Test.java</include> |
| </includes> |
| <systemPropertyVariables> |
| <project.version>${project.version}</project.version> |
| <project.target>${project.build.directory}</project.target> |
| <org.ops4j.pax.logging.DefaultServiceLog.level>WARN</org.ops4j.pax.logging.DefaultServiceLog.level> |
| </systemPropertyVariables> |
| <forkedProcessExitTimeoutInSeconds>10</forkedProcessExitTimeoutInSeconds> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |