<!-- 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"> <parent> <groupId>org.apache.felix</groupId> <artifactId>felix-parent</artifactId> <version>8</version> <relativePath /> </parent> <modelVersion>4.0.0</modelVersion> <packaging>bundle</packaging> <name>Apache Felix Declarative Services</name> <description> Implementation of the Declarative Services specification 1.5 </description> <artifactId>org.apache.felix.scr</artifactId> <version>2.2.12</version> <scm> <connection>scm:git:ssh://git@github.com/apache/felix-dev.git</connection> <developerConnection>scm:git:ssh://git@github.com/apache/felix-dev.git</developerConnection> <url>https://gitbox.apache.org/repos/asf?p=felix-dev.git</url> <tag>org.apache.felix.scr-2.2.12</tag> </scm> <!-- A Note on Testing ================= This project contains two kinds of tests: regular unit tests running in the test phase and integration tests based on PAX Exam running in the integration-test phase. For running the integration tests from the console using Maven nothing special has to be done as the tests run automatically. To run the tests in your IDE, the project has to be built to the "package" phase with the profile "ide" enabled: $ mvn -Pide clean package This creates the scr.jar file in the target folder, which is used by the integration tests when run from the IDE. Alternatively the "project.bundle.file" system property may be set to the bundle JAR in the IDE launcher. --> <properties> <bundle.build.name> ${basedir}/target </bundle.build.name> <bundle.file.name> ${bundle.build.name}/${project.build.finalName}.jar </bundle.file.name> <felix.ca.version>1.9.0</felix.ca.version> <java.version>8</java.version> <felix.java.version>${java.version}</felix.java.version> <maven.compiler.release>${java.version}</maven.compiler.release> <maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.target>${java.version}</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.core</artifactId> <version>8.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.annotation</artifactId> <version>6.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.component</artifactId> <version>1.5.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.cm</artifactId> <version>1.6.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.log</artifactId> <version>1.4.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.metatype</artifactId> <version>1.3.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.namespace.extender</artifactId> <version>1.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.util.promise</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.util.function</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.gogo.runtime</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency> <!-- Testing --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>2.28.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>2.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>biz.aQute.bnd</groupId> <artifactId>biz.aQute.bndlib</artifactId> <version>5.1.1</version> <scope>test</scope> </dependency> <!-- Integration Testing with Pax Exam --> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-container-forked</artifactId> <version>4.13.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-junit4</artifactId> <version>4.13.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-link-mvn</artifactId> <version>4.13.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.url</groupId> <artifactId>pax-url-aether</artifactId> <version>2.6.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.url</groupId> <artifactId>pax-url-wrap</artifactId> <version>2.6.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-api</artifactId> <version>1.6.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-service</artifactId> <version>1.6.3</version> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.3.12</version> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.3.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-atinject_1.0_spec</artifactId> <version>1.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.servicemix.bundles</groupId> <artifactId>org.apache.servicemix.bundles.junit</artifactId> <version>4.9_2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.base</groupId> <artifactId>ops4j-base-lang</artifactId> <version>1.2.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.ops4j.base</groupId> <artifactId>ops4j-base-net</artifactId> <version>1.2.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.ops4j.pax.tinybundles</groupId> <artifactId>tinybundles</artifactId> <version>1.0.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-annotations</artifactId> <version>1.9</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm-debug-all</artifactId> <version>5.0.4</version> <scope>test</scope> </dependency> </dependencies> <build> <directory>${bundle.build.name}</directory> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>3.2.0</version> <extensions>true</extensions> <configuration> <instructions> <_include>-bnd.bnd</_include> </instructions> </configuration> </plugin> <!-- plain unit tests --> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <exclude>**/integration/**</exclude> <exclude>**/components/**</exclude> <exclude>**/instances/**</exclude> <exclude>**/instances2/**</exclude> </excludes> </configuration> </plugin> <!-- integration tests run with pax-exam --> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> <configuration> <systemPropertyVariables> <project.bundle.file>${bundle.file.name}</project.bundle.file> <felix.ca.version>${felix.ca.version}</felix.ca.version> </systemPropertyVariables> <excludes> <exclude>**/components/**</exclude> </excludes> <includes> <include>**/integration/**</include> </includes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <excludePackageNames>org.apache.felix.scr.impl:org.apache.felix.scr.impl.*</excludePackageNames> <source>${java.version}</source> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.2</version> <configuration> <effort>Max</effort> <threshold>Low</threshold> </configuration> </plugin> </plugins> </reporting> <profiles> <!-- copy the package such that IDEs may easily use it without setting the system property --> <profile> <id>ide</id> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>scr-file-create</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scr.jar" /> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>felix</id> <activation> <activeByDefault>true</activeByDefault> </activation> <dependencies> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.framework</artifactId> <version>7.0.1</version> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>equinox</id> <dependencies> <dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.osgi</artifactId> <version>3.16.200</version> <scope>test</scope> </dependency> </dependencies> </profile> </profiles> </project>