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

  <parent>
    <groupId>org.reddwarfserver.server</groupId>
    <artifactId>sgs-server-parent</artifactId>
    <version>0.10.1</version>
  </parent>

  <artifactId>sgs-stop</artifactId>
  <name>RedDwarf Stopper</name>
  <packaging>jar</packaging>
  <description>
    The sgs-stop module is a standard jar package of sgs classes
    used to stop a running server
  </description>

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

    <dependency>
      <groupId>org.reddwarfserver.server</groupId>
      <artifactId>sgs-boot</artifactId>
    </dependency>
    <dependency>
      <groupId>org.reddwarfserver.server</groupId>
      <artifactId>sgs-server-internal-api</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>

      <!-- create bootable jar -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>false</addClasspath>
	      <mainClass>com.sun.sgs.system.stop.Stop</mainClass>
            </manifest>
	    <manifestEntries>
	      <Class-Path>../conf/ sgs-boot.jar ../lib/sgs-server-internal-api-${sgs.version}.jar</Class-Path>
	    </manifestEntries>
          </archive>
        </configuration>
      </plugin>

      <!-- Activate the resource bundle plugin to include the license
	   file in the jar -->
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-remote-resources-plugin</artifactId>
	<executions>
	  <execution>
	    <id>include-gpl-license</id>
	    <phase>generate-resources</phase>
	  </execution>
	</executions>
      </plugin>

      <!-- Use 1.5 for source and target during compile -->
      <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>

  <properties>

  </properties>

</project>
