<?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">
  <modelVersion>4.0.0</modelVersion>

  <groupId>nl.uva.sne</groupId>
  <artifactId>sne-xacml</artifactId>
  <version>0.0.3</version>
  <packaging>pom</packaging>

  <name>SNE-XACML Engine</name>
  <description>A high performance XACML PDP Engine using
    Multi-data-types Interval Decision Diagrams</description>
  <url>https://github.com/canhnt/sne-xacml</url>
  <inceptionYear>2012</inceptionYear>

  <modules>
    <module>sne-xacml-core</module>
    <module>sne-xacml-demo</module>
  </modules>

  <organization>
    <name>System and Network Engineering Group</name>
    <url>https://ivi.fnwi.uva.nl/sne/</url>
  </organization>

  <developers>
    <developer>
      <name>Canh Ngo</name>
      <email>[canh nt] a t g m a i l d o t c o m</email>
    </developer>
  </developers>

  <licenses>
    <license>
      <name>GNU Lesser General Public License v3.0</name>
      <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
    </license>
  </licenses>

  <properties>
    <project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
    <slf4j.version>1.6.5</slf4j.version>
    <jaxb-osgi.version>2.2.7</jaxb-osgi.version>
    <junit.version>4.5</junit.version>
    <maven-release-plugin.version>2.5</maven-release-plugin.version>
    <guava.version>17.0</guava.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${slf4j.version}</version>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-osgi</artifactId>
      <version>${jaxb-osgi.version}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <scm>
    <developerConnection>scm:git:git@github.com:canhnt/sne-xacml.git</developerConnection>
    <connection>scm:git:git@github.com:canhnt/sne-xacml.git</connection>
    <url>scm:git:git@github.com:canhnt/sne-xacml.git</url>
    <tag>sne-xacml-0.0.3</tag>
  </scm>

  <distributionManagement>
  	<snapshotRepository>
  		<id>sonatype-nexus-snapshots</id>
  		<name>Sonatype Nexus snapshot repository</name>
  		<url>https://oss.sonatype.org/content/repositories/snapshots</url>
  	</snapshotRepository>
  	<repository>
  		<id>sonatype-nexus-staging</id>
  		<name>Sonatype Nexus release repository</name>
  		<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  	</repository>
  </distributionManagement>

  <profiles>
    <profile>
      <id>release-sign-artifacts</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.4</version>
            <configuration>
              <passphrase>${gpg.passphrase}</passphrase>
            </configuration>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>${maven-release-plugin.version}</version>
          <configuration>
        	  <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eluder.coveralls</groupId>
        <artifactId>coveralls-maven-plugin</artifactId>
        <version>3.0.1</version>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.7.2.201409121644</version>
        <executions>
          <execution>
            <id>prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
