<?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">
  <parent>
    <artifactId>addc-pom</artifactId>
    <groupId>com.addc.pom</groupId>
    <version>8.5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.addc</groupId>
  <artifactId>isis-provider</artifactId>
  <version>3.2</version>
  <packaging>jar</packaging>
  <name>isis-provider</name>
  <description>Isis provider and keystore SPI</description>
  <url>http://www.addc.com/projects/isis-provider</url>

  <properties>
    <build.site.version>1.0-SNAPSHOT</build.site.version>
  </properties>

  <scm>
    <connection>scm:svn:http://svn.code.sf.net/p/addc-commons/code/isis-provider/trunk/isis-provider</connection>
    <developerConnection>scm:svn:svn+ssh://pkanis@svn.code.sf.net/p/addc-commons/code/isis-provider/trunk/isis-provider</developerConnection>
    <url>https://svn.code.sf.net/p/addc-commons/code/isis-provider/</url>
  </scm>

  <distributionManagement>
    <site>
      <id>addc.site</id>
      <url>http://www.addc.com/projects/</url>
    </site>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>check-third-party-licenses</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>artifact-javadoc</id>
            <configuration>
              <excludePackageNames>com.addc.keystore.isis</excludePackageNames>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <configuration>
          <instrumentation>
            <excludes>
              <exclude>**/*Exception.class</exclude>
              <exclude>**/*Constants.class</exclude>
              <exclude>com/addc/keystore/isis/*.class</exclude>
            </excludes>
          </instrumentation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>jar-test-classes</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>extract-omg-idls</id>
            <goals>
              <goal>unpack</goal>
            </goals>
            <phase>process-sources</phase>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.addc.build</groupId>
                  <artifactId>omg-idls</artifactId>
                  <version>1.0</version>
                  <type>zip</type>
                  <outputDirectory>${project.build.directory}/omg-idls</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
          <execution>
            <id>extract-site-zip</id>
            <phase>pre-site</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.addc.build</groupId>
                  <artifactId>site</artifactId>
                  <version>${build.site.version}</version>
                  <type>zip</type>
                  <outputDirectory>${project.build.directory}</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
          <filesets>
            <fileset>
              <directory>src/main/generated</directory>
              <includes>
                <include>**/*</include>
              </includes>
            </fileset>
            <fileset>
              <directory>target</directory>
              <includes>
                <include>**/*</include>
              </includes>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>idlj-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate.idl</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <phase>process-resources</phase>
          </execution>
        </executions>
        <configuration>
          <includeDirs>
            <includeDir>${project.build.directory}/omg-idls</includeDir>
          </includeDirs>
          <debug>true</debug>
          <compiler>jacorb</compiler>
          <outputDirectory>${basedir}/src/main/generated</outputDirectory>
          <sources>
            <source>
              <additionalArguments>
                <additionalArgument>-forceOverwrite</additionalArgument>
                <additionalArgument>-genEnhanced</additionalArgument>
                <list>-i2jpackage</list>
                <list>KeyStore:com.addc.keystore.isis</list>
              </additionalArguments>
            </source>
          </sources>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.jacorb</groupId>
            <artifactId>jacorb-idl-compiler</artifactId>
            <version>3.8</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jarsigner-plugin</artifactId>
        <version>1.4</version>
        <executions>
          <execution>
            <id>sign</id>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <keystore>/mnt/download/codesign.jks</keystore>
          <alias>codeSign</alias>
          <storepass>Perri#22To</storepass>
          <keypass>Perri#22To</keypass>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <configuration>
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
          <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>summary</report>
              <report>licenses</report>
              <report>dependencies</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <excludePackageNames>com.addc.keystore.isis</excludePackageNames>
        </configuration>
        <reportSets>
          <reportSet>
            <id>javadoc.report</id>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <configuration>
          <aggregate>false</aggregate>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.jacorb</groupId>
      <artifactId>jacorb-omgapi</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>
