<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>
  <groupId>org.lucee</groupId>
  <artifactId>itext</artifactId>
  <version>2.1.7</version>
  <name>itext</name>
  <packaging>bundle</packaging>

  <description>OSGi Version of itext</description>
  <url>http://maven.lucee.org/itext/</url>

  <!-- same license as the original jar -->
  <licenses>

    <license>
        <name>Mozilla Public License Version 1.1</name>
        <url>https://www.mozilla.org/MPL/1.1/</url>
    </license>

  </licenses>

  <developers>

    <developer>
      <id>micstriit</id>
      <name>Michael Offner</name>
      <email>michael@lucee.org</email>
      <organization>Lucee Association Switzerland</organization>
      <organizationUrl>http://lucee.org</organizationUrl>
      <roles>
        <role>Project-Administrator</role>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>

  </developers>

  <build>
    <plugins>
      <plugin>
      <groupId>org.sonatype.plugins</groupId>
      <artifactId>nexus-staging-maven-plugin</artifactId>
      <version>1.6.3</version>
      <extensions>true</extensions>
      <configuration>
        <serverId>ossrh</serverId>
        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
        <autoReleaseAfterClose>true</autoReleaseAfterClose>
      </configuration>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-gpg-plugin</artifactId>
      <version>1.5</version>
      <executions>
        <execution>
          <id>sign-artifacts</id>
          <phase>verify</phase>
          <goals>
            <goal>sign</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.5</version>
      <configuration>
        <autoVersionSubmodules>true</autoVersionSubmodules>
        <useReleaseProfile>false</useReleaseProfile>
        <releaseProfiles>release</releaseProfiles>
        <goals>deploy</goals>
      </configuration>
    </plugin>

    <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <version>2.10</version>
         <executions>
           <execution>
             <id>unpack</id>
             <phase>validate</phase>
             <goals>
               <goal>unpack</goal>
             </goals>
             <configuration>
               <artifactItems>
                 <artifactItem>
                   <groupId>com.lowagie</groupId>
                    <artifactId>itext</artifactId>
                    <version>2.1.7</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
                   <outputDirectory>${project.build.directory}/classes</outputDirectory>
                 </artifactItem>
               </artifactItems>
               <overWriteReleases>true</overWriteReleases>
               <overWriteSnapshots>true</overWriteSnapshots>
             </configuration>
           </execution>
         </executions>
       </plugin>

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>3.0.1</version>
        <configuration>
          <unpackBundle>true</unpackBundle>
          <instructions>
            <Bundle-Name>org.lucee.itext</Bundle-Name>
            <Bundle-SymbolicName>org.lucee.itext</Bundle-SymbolicName>
            <Bundle-Description>OSGI version of jar ${project.name}</Bundle-Description>
            <Export-Package>*</Export-Package>
            <Require-Bundle>bouncycastle.mail;bundle-version="[1.38.0,1.38.0]",bouncycastle.prov;bundle-version="[1.38.0,1.38.0]",bouncycastle.tsp;bundle-version="[1.38.0,1.38.0]"</Require-Bundle>
            <!-- <Require-Bundle-Fragment></Require-Bundle-Fragment> -->
            <Import-Package>!com.apple.mrj,!com.lowagie.toolbox,com.lowagie.text,
              com.lowagie.text.exceptions,com.lowagie.text.factories,com.lowagie.text.html,com.lowagie.text.pdf,
              com.lowagie.text.pdf.codec,com.lowagie.text.pdf.codec.wmf,com.lowagie.text.pdf.collection,
              com.lowagie.text.pdf.crypto,com.lowagie.text.pdf.draw,com.lowagie.text.pdf.events,
              com.lowagie.text.pdf.fonts,com.lowagie.text.pdf.fonts.cmaps,com.lowagie.text.pdf.hyphenation,
              com.lowagie.text.pdf.interfaces,com.lowagie.text.pdf.internal,com.lowagie.text.xml,
              com.lowagie.text.xml.simpleparser,com.lowagie.text.xml.xmp,
              javax.crypto,javax.imageio,javax.imageio.metadata,javax.imageio.plugins.jpeg,javax.imageio.stream,
              javax.swing,javax.xml.parsers,javax.xml.transform,javax.xml.transform.stream,
              
              org.bouncycastle.asn1;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.cmp;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.cms;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.ocsp;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.pkcs;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.tsp;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.asn1.x509;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.cms;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.crypto;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.crypto.engines;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.crypto.modes;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.crypto.paddings;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.crypto.params;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.jce.provider;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.ocsp;bundle-version="[1.38.0,1.38.0]",
              org.bouncycastle.tsp;bundle-version="[1.38.0,1.38.0]",

              org.w3c.dom,org.xml.sax,org.xml.sax.helpers</Import-Package>
            <DynamicImport-Package>com.apple.mrj,com.lowagie.toolbox</DynamicImport-Package>
            <!-- <Fragment-Host></Fragment-Host> -->
          </instructions>
        </configuration>
        <extensions>true</extensions>
      </plugin>


    </plugins>
  </build>
  


  <scm>
    <url>https://github.com/lucee/osgi-bundle-itext</url>
    <connection>scm:git:git://github.com/lucee/osgi-bundle-itext.git</connection>
    <developerConnection>scm:git:git@github.com:lucee/osgi-bundle-itext.git</developerConnection>
    <tag>itext OSGi library</tag>
  </scm>

  <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>

</project>