<?xml version="1.0" encoding="UTF-8"?>
<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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.daisy</groupId>
    <artifactId>daisy</artifactId>
    <version>2</version>
    <relativePath />
  </parent>
  <groupId>org.daisy.libs</groupId>
  <artifactId>jsslutils</artifactId>
  <version>1.0.7</version>
  <packaging>bundle</packaging>
  <name>jSSLutils</name>
  <url>http://www.jsslutils.org/</url>
  <description>This is a set of SSL-related utilities for Java.</description>
  <licenses>
    <license>
      <name>BSD</name>
      <url>LICENSE.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:svn:http://jsslutils.googlecode.com/svn/tags/jsslutils-1.0.7</connection>
    <tag>jsslutils-1.0.7</tag>
    <url>http://code.google.com/p/jsslutils/source/browse/tags/jsslutils-1.0.7</url>
  </scm>
  <developers>
    <developer>
      <id>bruno.harbulot</id>
      <name>Bruno Harbulot</name>
      <email>Bruno.Harbulot@manchester.ac.uk</email>
      <organization>The University of Manchester</organization>
      <organizationUrl>http://www.manchester.ac.uk/</organizationUrl>
      <roles>
        <role>architect</role>
        <role>developer</role>
      </roles>
      <timezone>0</timezone>
    </developer>
  </developers>
  <properties>
    <lib.groupId>org.jsslutils</lib.groupId>
    <lib.artifactId>jsslutils</lib.artifactId>
    <lib.version>1.0.7</lib.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>${lib.groupId}</groupId>
      <artifactId>${lib.artifactId}</artifactId>
      <version>${lib.version}</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.jsslutils</Bundle-SymbolicName>
            <Export-Package>org.jsslutils.keystores,
			    org.jsslutils.sslcontext,
			    org.jsslutils.sslcontext.keymanagers,
			    org.jsslutils.sslcontext.trustmanagers
            </Export-Package>
            <Embed-Dependency>*;inline=true</Embed-Dependency>
            <_removeheaders>Built-By,Bnd-LastModified,Embed-Dependency,Include-Resource,Private-Package</_removeheaders>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sonatype-oss-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <phase>none</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <phase>none</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>fetch-sources-and-javadocs</id>
                <goals>
                  <goal>unpack</goal>
                </goals>
                <configuration>
                  <artifactItems>
                    <artifactItem>
                      <groupId>${lib.groupId}</groupId>
                      <artifactId>${lib.artifactId}</artifactId>
                      <version>${lib.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>${lib.groupId}</groupId>
                      <artifactId>${lib.artifactId}</artifactId>
                      <version>${lib.version}</version>
                      <classifier>sources</classifier>
                      <outputDirectory>${project.build.directory}/sources</outputDirectory>
                    </artifactItem>
                  </artifactItems>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources-and-javadoc</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>sources.xml</descriptor>
                    <descriptor>javadoc.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
