| <?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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>sling</artifactId> |
| <version>19</version> |
| <relativePath>../../../parent/pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>org.apache.sling.junit.core</artifactId> |
| <version>1.0.9-SNAPSHOT</version> |
| <packaging>bundle</packaging> |
| |
| <name>Apache Sling JUnit Core</name> |
| <description>Runs JUnit tests in an OSGi framework and provides the JUnit libraries</description> |
| |
| <properties> |
| <junit.version>4.11</junit.version> |
| <hamcrest.version>1.3</hamcrest.version> |
| <jacoco.version>0.6.2.201302030002</jacoco.version> |
| </properties> |
| |
| <scm> |
| <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/testing/junit/core</connection> |
| <developerConnection> scm:svn:https://svn.apache.org/repos/asf/sling/trunk/testing/junit/core</developerConnection> |
| <url>http://svn.apache.org/viewvc/sling/trunk/testing/junit/core</url> |
| </scm> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-scr-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Bundle-Activator>org.apache.sling.junit.Activator</Bundle-Activator> |
| <Export-Package> |
| org.apache.sling.junit;version=1.2.1, |
| org.apache.sling.junit.rules;version=1.0.10, |
| org.apache.sling.junit.annotations;version=1.0.8, |
| </Export-Package> |
| <_exportcontents> |
| junit.framework;version=${junit.version}, |
| org.junit;version=${junit.version}, |
| org.junit.matchers.*;version=${junit.version}, |
| org.junit.rules.*;version=${junit.version}, |
| org.junit.runner.*;version=${junit.version}, |
| org.junit.runners.*;version=${junit.version}, |
| org.hamcrest.*;version=${hamcrest.version}, |
| org.hamcrest.core.*;version=${hamcrest.version} |
| </_exportcontents> |
| <Private-Package>org.apache.sling.junit.impl.*</Private-Package> |
| <Embed-Dependency> |
| org.jacoco.agent;classifier=runtime;inline=org/jacoco/agent/rt/IAgent.class, |
| *;artifactId=junit, |
| *;artifactId=hamcrest-core |
| </Embed-Dependency> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>extractJacocoAgent</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.jacoco</groupId> |
| <artifactId>org.jacoco.agent</artifactId> |
| <version>${jacoco.version}</version> |
| <includes>jacocoagent.jar</includes> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.compendium</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.scr.annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.commons.json</artifactId> |
| <version>2.0.6</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.5.11</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jacoco</groupId> |
| <artifactId>org.jacoco.agent</artifactId> |
| <classifier>runtime</classifier> |
| <version>${jacoco.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| <version>${hamcrest.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| </project> |