<?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>addc-pom</artifactId>
    <groupId>com.addc.pom</groupId>
    <version>8.7.3</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.addc</groupId>
  <artifactId>addc-commons</artifactId>
  <packaging>pom</packaging>
  <version>2.6</version>
  <name>addc-commons</name>
  <description>The addc-commons project is used to build all the commons jar files.</description>
  <url>http://www.peterkanis.com/projects/addc-commons</url>

  <properties>
    <siteVersion>${project.version}</siteVersion>
    <build.site.version>1.0</build.site.version>
  </properties>

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

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

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <configuration>
          <check>
            <haltOnFailure>true</haltOnFailure>
            <totalLineRate>85</totalLineRate>
            <totalBranchRate>85</totalBranchRate>
          </check>
          <instrumentation>
            <excludes>
              <exclude>**/PasswordEncryptorTask.class</exclude>
              <exclude>**/*Exception.class</exclude>
              <exclude>**/*Constants.class</exclude>
              <exclude>**/Assert*.class</exclude>
            </excludes>
            <ignoreMethodAnnotation>com.addc.commons.annotation.CoberturaIgnore</ignoreMethodAnnotation>
          </instrumentation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <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>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>remove-unused-site-files</id>
            <goals>
              <goal>run</goal>
            </goals>
            <phase>post-site</phase>
            <inherited>true</inherited>
            <configuration>
              <target>
                <delete dir="${project.build.directory}/site/css" verbose="true" />
                <delete dir="${project.build.directory}/site/apidocs/css" verbose="true" />
                <delete dir="${project.build.directory}/site/fonts" verbose="true" />
                <delete dir="${project.build.directory}/site/images" verbose="true" />
                <delete dir="${project.build.directory}/site/img" verbose="true" />
                <delete dir="${project.build.directory}/site/js" verbose="true" />
                <delete file="${project.build.directory}/site/project-info.html" />
                <delete file="${project.build.directory}/site/project-reports.html" />
                <delete file="${project.build.directory}/site/plugins.html" />
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>modules</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <excludePackageNames>com.addc.commons.iiop.io,com.addc.sas</excludePackageNames>
        </configuration>
        <reportSets>
          <reportSet>
            <id>javadoc.report</id>
            <reports>
              <report>aggregate</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <modules>
    <module>../addc-base</module>
    <module>../addc-acceptor</module>
    <module>../addc-alerts</module>
    <module>../addc-cache</module>
    <module>../addc-iiop</module>
    <module>../addc-jmx</module>
    <module>../addc-queues</module>
    <module>../addc-queues-14</module>
    <module>../addc-security</module>
    <module>../addc-slp</module>
    <module>../addc-ssl</module>
    <module>../addc-statistics</module>
    <module>../addc-tag</module>
    <module>../addc-pdf</module>
    <module>../addc-test</module>
  </modules>

  <dependencies>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
