<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>annotated-data-model</artifactId>
    <groupId>com.basistech</groupId>
    <version>2.4.3</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>adm-model</artifactId>
  <name>adm-model</name>
  <version>2.4.3</version>
  <description>ADM data model.</description>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <configuration>
            <show>public</show>
            <tags>
              <tag>
                <name>adm.ignore</name>
                <placement>X</placement>
              </tag>
            </tags>
            <taglets>
              <taglet>
                <tagletClass>com.basistech.dm.taglets.JavaTaglet</tagletClass>
              </taglet>
            </taglets>
            <tagletArtifact>
              <groupId>${project.groupId}</groupId>
              <artifactId>adm-taglets</artifactId>
              <version>${project.version}</version>
            </tagletArtifact>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.9.1</version>
        <executions>
          <execution>
            <id>parse-version</id>
            <goals>
              <goal>parse-version</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <minimizeJar>true</minimizeJar>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <artifactSet>
                <includes>
                  <include>com.google.guava:guava</include>
                  <include>${project.groupId}:adm-model</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>com.google</pattern>
                  <shadedPattern>com.basistech.shaded.dm.com.google</shadedPattern>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>com.google.guava:guava</artifact>
                  <excludes>
                    <exclude>META-INF/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
                    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                    <Built-By>Basis Technology Corp.</Built-By>
                    <Bundle-Description>Annotated Data Model</Bundle-Description>
                    <Bundle-DocURL>http://basistech.com</Bundle-DocURL>
                    <Bundle-Name>adm-model</Bundle-Name>
                    <Bundle-Vendor>Basis Technology Corp.</Bundle-Vendor>
                    <Bundle-Version>${osgi-version}</Bundle-Version>
                    <Export-Package>com.basistech.rosette.dm;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",com.basistech.rosette.dm.util;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}";uses:="com.basistech.rosette,com.basistech.util",com.basistech.rosette.dm.internal;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}";uses:="com.basistech.util"</Export-Package>
                    <Implementation-Title>adm-model</Implementation-Title>
                    <Implementation-Vendor>Basis Technology Corp.</Implementation-Vendor>
                    <Implementation-Vendor-Id>com.basistech</Implementation-Vendor-Id>
                    <Implementation-Version>${project.version}</Implementation-Version>
                    <Import-Package>com.basistech.rosette,com.basistech.util;version="[36.0.0,37)"</Import-Package>
                    <Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.7))"</Require-Capability>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>generate-test-resources</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/bundles</outputDirectory>
              <excludeGroupIds>org.slf4j,com.google.guava</excludeGroupIds>
              <includeScope>compile</includeScope>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>${maven-surefire-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
            <configuration>
              <systemPropertyVariables>
                <java.awt.headless>true</java.awt.headless>
                <project.build.directory>${project.build.directory}</project.build.directory>
                <project.version>${project.version}</project.version>
              </systemPropertyVariables>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.basistech</groupId>
      <artifactId>common-api</artifactId>
      <version>36.1.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

