| <!-- |
| 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>3</version> |
| <relativePath>../../pom/pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <packaging>bundle</packaging> |
| <name>Apache Felix EventAdmin</name> |
| <description> |
| This bundle provides an implementation of the OSGi R4 EventAdmin service. |
| </description> |
| <version>1.4.5-SNAPSHOT</version> |
| <artifactId>org.apache.felix.eventadmin</artifactId> |
| <scm> |
| <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/eventadmin/impl</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/eventadmin/impl</developerConnection> |
| <url>http://svn.apache.org/repos/asf/felix/eventadmin/impl</url> |
| </scm> |
| |
| <properties> |
| <bundle.build.name> |
| ${basedir}/target |
| </bundle.build.name> |
| <bundle.file.name> |
| ${bundle.build.name}/${project.build.finalName}.jar |
| </bundle.file.name> |
| <felix.java.version>6</felix.java.version> |
| <!-- This is a placeholder to enable perf tests with the perftest profile --> |
| <additional.ittests>NONE</additional.ittests> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| <version>5.0.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.compendium</artifactId> |
| <version>5.0.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <!-- Unit Testing --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.10</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock-junit4</artifactId> |
| <version>2.5.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <version>1.5.2</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.1.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-junit4</artifactId> |
| <version>4.1.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-link-mvn</artifactId> |
| <version>4.1.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.url</groupId> |
| <artifactId>pax-url-aether</artifactId> |
| <version>2.1.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.url</groupId> |
| <artifactId>pax-url-wrap</artifactId> |
| <version>2.1.0</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.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| <version>4.4.1</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>2.5.0</version> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName> |
| ${project.artifactId} |
| </Bundle-SymbolicName> |
| <Bundle-Activator> |
| ${project.artifactId}.impl.Activator |
| </Bundle-Activator> |
| <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
| <DynamicImport-Package> |
| org.osgi.service.log;version="[1.3,2)" |
| </DynamicImport-Package> |
| <Import-Package> |
| org.osgi.framework;version="[1.3,2)", |
| <!-- |
| Configuration Admin is optional and if it is |
| present, version 1.2 (from R4.0) is enough |
| --> |
| org.osgi.service.cm;version="[1.2,2)";resolution:=optional, |
| |
| <!-- |
| Metatype is optional and if it is |
| present, version 1.1 (from R4.1) is enough |
| --> |
| org.osgi.service.metatype;version="[1.1,2)";resolution:=optional, |
| |
| <!-- |
| Optional import to back the dynamic import on org.osgi.service.log |
| --> |
| org.osgi.service.log;version="[1.3,2)";resolution:=optional, |
| |
| <!-- default --> |
| * |
| </Import-Package> |
| <Export-Package>org.osgi.service.event</Export-Package> |
| <Private-Package>org.apache.felix.eventadmin.impl.*</Private-Package> |
| <Import-Service> |
| org.osgi.service.event.EventHandler;availability:=optional;multiple:=true, |
| org.osgi.service.log.LogService;availability:=optional;multiple:=false, |
| org.osgi.service.log.LogReaderService;availability:=optional;multiple:=false |
| </Import-Service> |
| <Export-Service> |
| org.osgi.service.event.EventAdmin |
| </Export-Service> |
| <Embed-Dependency> |
| org.osgi.core;inline="org/osgi/util/tracker/*" |
| </Embed-Dependency> |
| </instructions> |
| </configuration> |
| </plugin> |
| <!-- integration tests run with pax-exam --> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.12</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <systemProperties> |
| <property> |
| <name>project.bundle.file</name> |
| <value>${bundle.file.name}</value> |
| </property> |
| </systemProperties> |
| <includes> |
| <include>**/ittests/*IT.java</include> |
| <include>${additional.ittests}</include> |
| </includes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>perftest</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <additional.ittests>**/perftests/*IT.java</additional.ittests> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |