<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>9</version>
  </parent>

  <groupId>com.projectdarkstar.server</groupId>
  <artifactId>sgs-shared</artifactId>
  <name>Project Darkstar Shared</name>
  <packaging>jar</packaging>
  <version>1.4</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>
  </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>

      <!-- 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>

  <reporting>
    <plugins>

      <!-- Configure checkstyle to run during site lifecycle -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
	<configuration>
	  <linkXRef>false</linkXRef>
	  <consoleOutput>true</consoleOutput>
	  <enableRulesSummary>false</enableRulesSummary>
	  <configLocation>${checkstyle.config}</configLocation>
	  <headerLocation>${checkstyle.header.bsd}</headerLocation>
	  <packageNamesLocation>
	    ${checkstyle.packageNames}
	  </packageNamesLocation>
	  <propertyExpansion>
	    checkstyle.unusedImports=${checkstyle.unusedImports}
	  </propertyExpansion>
        </configuration>
      </plugin>

      <!-- Configure findbugs to run during site lifecycle -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
	<configuration>
	  <effort>Max</effort>
	  <excludeFilterFile>
	    ${basedir}/src/main/etc/findbugs-exclude.xml
	  </excludeFilterFile>
	  <threshold>Low</threshold>
	  <xmlOutput>true</xmlOutput>
	  <findbugsXmlOutput>true</findbugsXmlOutput>
	  <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
	</configuration>
      </plugin>

    </plugins>
  </reporting>

  <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>

</project>
