| <?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.karaf</groupId> |
| <artifactId>components</artifactId> |
| <version>3.3.0</version> |
| </parent> |
| |
| <artifactId>camel-test-karaf</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Camel Karaf :: Test :: Karaf</name> |
| <description>Camel integration testing with Apache Karaf</description> |
| |
| <properties> |
| <firstVersion>2.18.0</firstVersion> |
| <label>testing,java,osgi</label> |
| |
| <karf-test-version>${karaf4-version}</karf-test-version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-junit4</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-container-karaf</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-link-mvn</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.inject</groupId> |
| <artifactId>javax.inject</artifactId> |
| <version>1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>org.apache.karaf.features.core</artifactId> |
| <version>${karaf4-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karf-test-version}</version> |
| <type>tar.gz</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.configadmin</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.gogo.runtime</artifactId> |
| <version>1.1.2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.cmpn</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test</artifactId> |
| </dependency> |
| |
| <!-- test --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <!-- Eclipse m2e Lifecycle Management --> |
| <plugin> |
| <groupId>org.eclipse.m2e</groupId> |
| <artifactId>lifecycle-mapping</artifactId> |
| <version>${lifecycle-mapping-version}</version> |
| <configuration> |
| <lifecycleMappingMetadata> |
| <pluginExecutions> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.servicemix.tooling</groupId> |
| <artifactId>depends-maven-plugin</artifactId> |
| <versionRange>${depends-maven-plugin-version}</versionRange> |
| <goals> |
| <goal>generate-depends-file</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore /> |
| </action> |
| </pluginExecution> |
| </pluginExecutions> |
| </lifecycleMappingMetadata> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <!-- generate dependencies versions --> |
| <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> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <!-- do not re-run these tests --> |
| <rerunFailingTestsCount>0</rerunFailingTestsCount> |
| <systemPropertyVariables> |
| <karafVersion>${karaf4-version}</karafVersion> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-bundle-plugin</artifactId> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| <!-- Export-Package>org.apache.camel.test.karaf</Export-Package --> |
| <DynamicImport-Package>*</DynamicImport-Package> |
| <Import-Package /> |
| <_removeheaders>Import-Package, Private-Package, Include-Resource, Karaf-Info, |
| Require-Capability |
| </_removeheaders> |
| </instructions> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>ci-build-profile</id> |
| <activation> |
| <property> |
| <name>maven.repo.local</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> |
| <!-- |
| when the local repo location has been specified, we need to pass |
| on this information to PAX mvn url |
| --> |
| <argLine>-Dorg.ops4j.pax.url.mvn.localRepository=${maven.repo.local}</argLine> |
| <systemPropertyVariables> |
| <karafVersion>${karaf4-version}</karafVersion> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| </profiles> |
| </project> |