<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright (c) 2011, cyber:con GmbH, Bonn. ~ ~ All rights reserved. 
This source file is provided to you for ~ documentation purposes only. No 
part of this file may be ~ reproduced or copied in any form without the written 
~ permission of cyber:con GmbH. No liability can be accepted ~ for errors 
in the program or in the documentation or for damages ~ which arise through 
using the program. If an error is discovered, ~ cyber:con GmbH will endeavour 
to correct it as quickly as possible. ~ The use of the program occurs exclusively 
under the conditions ~ of the licence contract with cyber:con GmbH. -->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.bndly.common</groupId>
    <artifactId>org.bndly.common.applications</artifactId>
    <version>1.0.1</version>
  </parent>
  <groupId>org.bndly.common</groupId>
  <artifactId>org.bndly.common.osgi-config</artifactId>
  <version>1.0.1</version>
  <packaging>bundle</packaging>
  <name>bndly commons OSGI Config</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.configadmin</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.metatype</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common</groupId>
      <artifactId>org.bndly.common.json</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common</groupId>
      <artifactId>org.bndly.common.lang</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common</groupId>
      <artifactId>org.bndly.common.osgi</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common</groupId>
      <artifactId>org.bndly.common.runmode</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common.crypto</groupId>
      <artifactId>org.bndly.common.crypto.crypto-impl</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bndly.common.data</groupId>
      <artifactId>org.bndly.common.data.data-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.service.log</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi.cmpn</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-Activator>org.bndly.common.osgi.config.Activator</Bundle-Activator>
            <Require-Capability>osgi.serviceloader; filter:="(|(osgi.serviceloader=org.bndly.common.osgi.config.spi.CipherProvider)(osgi.serviceloader=org.bndly.common.osgi.config.spi.PrefixHandler))";cardinality:=multiple,osgi.extender; filter:="(|(osgi.extender=osgi.serviceloader.processor)(osgi.extender=osgi.serviceloader.registrar))"</Require-Capability>
            <Provide-Capability>osgi.serviceloader; osgi.serviceloader=org.bndly.common.osgi.config.spi.CipherProvider,osgi.serviceloader; osgi.serviceloader=org.bndly.common.osgi.config.spi.PrefixHandler</Provide-Capability>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>
