<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>h2</artifactId>
  <version>2.1.214.0001L</version>
  <name>h2</name>
  <packaging>bundle</packaging>

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

  <!-- same license as the original jar -->
  <licenses>
<license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </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.h2database</groupId>
                    <artifactId>h2</artifactId>
                    <version>2.1.214</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>5.1.2</version>
        <configuration>
          <unpackBundle>true</unpackBundle>
          <instructions>
            <Bundle-Name>org.lucee.h2</Bundle-Name>
            <Bundle-SymbolicName>org.lucee.h2</Bundle-SymbolicName>
            <Bundle-Description>OSGI version of jar ${project.name}</Bundle-Description>
            <Export-Package>*,META-INF.services.*</Export-Package>
            <!-- <Require-Bundle></Require-Bundle> -->
            <!-- <Require-Bundle-Fragment></Require-Bundle-Fragment> -->
            <Import-Package>!org.osgi.framework,!org.osgi.service.jdbc,!org.osgi.util.tracker,!com.ibm.icu.text,!com.sun.tools.javac,!jakarta.servlet,!jakarta.servlet.http,!org.locationtech.jts.geom,!org.apache.lucene.queryparser.flexible.standard,!org.apache.lucene.analysis.standard,!org.apache.lucene.document,!org.apache.lucene.index,!org.apache.lucene.search,!org.apache.lucene.store,!org.codehaus.groovy.control.customizers,!org.locationtech.jts.geom.impl,!org.slf4j,!org.w3c.dom,!org.xml.sax,!org.xml.sax.helpers,!sun.misc,!org.apache.lucene.analysis,*</Import-Package>
            <DynamicImport-Package>org.osgi.framework,org.osgi.service.jdbc,org.osgi.util.tracker,com.ibm.icu.text,com.sun.tools.javac,jakarta.servlet,jakarta.servlet.http,org.locationtech.jts.geom,org.apache.lucene.queryparser.flexible.standard,org.apache.lucene.analysis.standard,org.apache.lucene.document,org.apache.lucene.index,org.apache.lucene.search,org.apache.lucene.store,org.codehaus.groovy.control.customizers,org.locationtech.jts.geom.impl,org.slf4j,org.w3c.dom,org.xml.sax,org.xml.sax.helpers,sun.misc,org.apache.lucene.analysis</DynamicImport-Package>
            <!-- <Fragment-Host></Fragment-Host> -->
            <Bundle-Vendor>H2 Group</Bundle-Vendor>
						<Implementation-URL>https&#x3a;&#x2f;&#x2f;h2database.com</Implementation-URL>
						<Main-Class>org.h2.tools.Console</Main-Class>
						<Bundle-Activator>org.h2.util.DbDriverActivator</Bundle-Activator>
						<Premain-Class>org.h2.util.Profiler</Premain-Class>
						<Manifest-Version>1.0</Manifest-Version>
						<Bundle-License>https&#x3a;&#x2f;&#x2f;h2database.com&#x2f;html&#x2f;license.html</Bundle-License>
						<Multi-Release>true</Multi-Release>
						<Provide-Capability>osgi.service&#x3b;objectClass&#x3a;List&#x3c;String&#x3e;&#x3d;org.osgi.service.jdbc.DataSourceFactory</Provide-Capability>
						<Build-Jdk>1.8</Build-Jdk>
						<Implementation-Title>H2 Database Engine</Implementation-Title>
						<Automatic-Module-Name>com.h2database</Automatic-Module-Name>
						<Implementation-Version>2.1.214</Implementation-Version>
						<Bundle-Category>jdbc</Bundle-Category>
						<Created-By>1.8.0_281-b09 &#x28;Oracle Corporation&#x29;</Created-By>
            <!-- Embed Dependency -->
          </instructions>
        </configuration>
        <extensions>true</extensions>
      </plugin>


    </plugins>
  </build>


  <scm>
    <url>https://github.com/lucee/osgi-bundle-h2</url>
    <connection>scm:git:git://github.com/lucee/osgi-bundle-h2.git</connection>
    <developerConnection>scm:git:git@github.com:lucee/osgi-bundle-h2.git</developerConnection>
    <tag>h2 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>