<?xml version="1.0" encoding="utf-8"?>

<!-- POM file for Jena IRI library -->

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.hp.hpl.jena</groupId>
  <artifactId>iri</artifactId>
  <packaging>jar</packaging>
  <name>Jena IRI</name>
  <version>0.8</version>
  <description/>
  <url>http://jena.sf.net/iri</url>

  <organization>
    <name>Hewlett-Packard</name>
    <url>http://www.hp.com/</url>
  </organization>

  <licenses>
    <license>
      <name>BSD-style license</name>
      <url>http://jena.sourceforge.net/iri/license.html</url>
    </license>
  </licenses>

  <scm>
    <url>http://jena.cvs.sourceforge.net/jena/iri</url>
    <!--<connection>scm:cvs:pserver:anonymous@jena.cvs.sourceforge.net:/cvsroot/jena/iri</connection>-->
  </scm>

  <properties>
    <this.root>${project.artifactId}-${project.version}</this.root>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.ibm.icu</groupId>
      <artifactId>icu4j</artifactId>
      <version>3.4.4</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.5</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>src-test</testSourceDirectory>

    <resources>
      <resource>
        <directory>resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <includes>
            <include>com/hp/hpl/jena/iri/test/TestPackage.java</include>
          </includes>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions> 
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
          <!--
          <execution>
            <id>attach-sources-test</id>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
          -->
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <version>true</version>
          <show>public</show>
          <quiet>true</quiet>
          <encoding>UTF-8</encoding>
          <windowtitle>${project.name} ${project.version}</windowtitle>
          <doctitle>${project.name} ${project.version}</doctitle>
          <bottom>Copyright &#169; 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP</bottom>
        </configuration>
      </plugin>
      
      <!-- see: http://maven.apache.org/guides/mini/guide-attached-tests.html -->
      <!--
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.2</version>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      -->

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
            <descriptor>assembly.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>create-assembly</id>
            <!-- Better after package because of javadoc, source and test-jar-->
            <phase>verify</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      
    </plugins>
  </build>
  
  <distributionManagement>

    <repository>
      <id>jena-repo-dev</id>
      <name>Jena development repo</name>
      <url>sftp://jena.hpl.hp.com/var/repo</url>
      <!--<url>file:tmp</url>-->
      <layout>default</layout>
    </repository>

    <snapshotRepository>
      <id>jena-repo</id>
      <name>Jena Repository</name>
      <url>sftp://jena.hpl.hp.com/var/repo-dev</url>
      <!--<url>file:tmp</url>-->
      <layout>default</layout>
    </snapshotRepository>
  </distributionManagement>

</project>
