| <?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"> |
| <parent> |
| <artifactId>provisionr-parent</artifactId> |
| <groupId>org.apache.provisionr</groupId> |
| <version>0.5.0-incubating-SNAPSHOT</version> |
| <relativePath>../parent/pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <name>Apache Provisionr :: Test Support</name> |
| <artifactId>provisionr-test-support</artifactId> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <osgi.export>org.apache.provisionr.test*</osgi.export> |
| <osgi.import> |
| org.mockito*;resolution:=optional, |
| * |
| </osgi.import> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.provisionr</groupId> |
| <artifactId>provisionr-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.activiti</groupId> |
| <artifactId>activiti-engine</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam</artifactId> |
| <version>${pax.exam.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.tooling.exam</groupId> |
| <artifactId>org.apache.karaf.tooling.exam.container</artifactId> |
| <version>${karaf.tooling.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-junit4</artifactId> |
| <version>${pax.exam.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-link-mvn</artifactId> |
| <version>${pax.exam.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.url</groupId> |
| <artifactId>pax-url-aether</artifactId> |
| <version>${pax.url.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| <version>${felix.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.swissbox</groupId> |
| <artifactId>pax-swissbox-tinybundles</artifactId> |
| <version>${tinybundles.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix.bundles</groupId> |
| <artifactId>org.apache.servicemix.bundles.junit</artifactId> |
| <version>${junit.osgi.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <!-- Apache Felix Karaf integration --> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karaf.version}</version> |
| <scope>compile</scope> |
| <type>tar.gz</type> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>org.apache.karaf.client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.osgi</groupId> |
| <artifactId>org.eclipse.osgi</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| <targetPath>${project.build.directory}</targetPath> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>src/main/resources</directory> |
| <excludes> |
| <exclude>features.xml</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>filter</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>maven-paxexam-plugin</artifactId> |
| <version>1.2.4</version> |
| <executions> |
| <execution> |
| <id>generate-config</id> |
| <goals> |
| <goal>generate-config</goal> |
| <goal>generate-depends-file</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <options> |
| <platform>equinox</platform> |
| <profiles>log</profiles> |
| </options> |
| </configuration> |
| </plugin> |
| <!-- |
| features:addurl mvn:org.apache.provisionr/provisionr-features/0.0.1-SNAPSHOT/xml/features |
| features:install <feature-name> |
| --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.build.directory}/features.xml</file> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>features-maven-plugin</artifactId> |
| <version>${karaf.version}</version> |
| <executions> |
| <execution> |
| <id>add-features-to-repo</id> |
| <phase>package</phase> |
| <goals> |
| <!-- We are doing so to just to validate that all artifacts are reachable --> |
| <goal>add-features-to-repo</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>file:${project.build.directory}/features.xml</descriptor> |
| </descriptors> |
| <features> |
| <feature>provisionr-test-support</feature> |
| </features> |
| <repository>target/features-repo</repository> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <configuration> |
| <instructions> |
| <Export-Package>${osgi.export}</Export-Package> |
| <Import-Package>${osgi.import}</Import-Package> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |