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

  <!-- Inherit from the global SGS super POM -->
  <parent>
    <groupId>com.projectdarkstar</groupId>
    <artifactId>sgs</artifactId>
    <version>15</version>
  </parent>

  <groupId>com.projectdarkstar.server</groupId>
  <artifactId>sgs-shared</artifactId>
  <name>Project Darkstar Shared</name>
  <packaging>jar</packaging>
  <version>1.10</version>
  <inceptionYear>2007</inceptionYear>
  <url>http://www.projectdarkstar.com</url>
  <scm>
    <connection>
      scm:svn:https://sgs-shared.dev.java.net/svn/sgs-shared/trunk
    </connection>
    <developerConnection>
      scm:svn:https://sgs-shared.dev.java.net/svn/sgs-shared/trunk
    </developerConnection>
    <url>
      https://sgs-shared.dev.java.net/source/browse/sgs-shared/trunk
    </url>
  </scm>
  <description>
    The sgs-shared module is a standard jar package that includes
    classes used by both the sgs-server and sgs-client packages
  </description>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>

    <dependency>
	<groupId>com.projectdarkstar.tools.test</groupId>
	<artifactId>sgs-test-ext</artifactId>
	<scope>test</scope>
	<version>1.0</version>
      </dependency>
  </dependencies>

  <build>
    <plugins>

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

      <!-- Always attach a javadoc jar -->
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<executions>
	  <execution>
	    <id>attach-javadocs</id>
	  </execution>
	</executions>
      </plugin>

      <!-- Include the BSD license in the jar -->
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-remote-resources-plugin</artifactId>
	<executions>
	  <execution>
	    <id>include-bsd-license</id>
	    <phase>generate-resources</phase>
	  </execution>
	</executions>
      </plugin>

      <!-- Verify correct license headers in each source code file -->
      <plugin>
	<groupId>com.google.code.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
	<executions>
	  <execution>
	    <id>check-license</id>
	    <phase>compile</phase>
	  </execution>
	</executions>
      </plugin>

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

    </plugins>

  </build>

  <repositories>
    <repository>
      <id>java.net</id>
      <name>java.net Maven2 Repository</name>
      <url>http://download.java.net/maven/2/</url>
      <layout>default</layout>
    </repository>
  </repositories>

  <properties>
    <findbugs-exclude.filter>
      ${basedir}/src/main/etc/findbugs-exclude.xml
    </findbugs-exclude.filter>
    <sgs-test-ext.version>1.0</sgs-test-ext.version>
  </properties>

</project>
