<?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/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
 
  <parent>
    <groupId>com.tourgeek.config</groupId>
    <artifactId>tourgeek-config-reactor</artifactId>
    <version>0.8.5</version>
  </parent>

  <artifactId>tourgeek-config-server</artifactId>
  <packaging>pom</packaging>
  <name>tourgeek-config-server - Run the tourgeek server</name>
  
  <build>
    <plugins>      
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
            <mainClass>org.jbundle.server.Server</mainClass>
	        <arguments>
	        <!-- 
	            <argument>$DEBUG</argument>
	            <argument>-Xms256m</argument>
	            <argument>-Xmx512m</argument>
	         -->
	            <argument>-Djava.rmi.server.codebase=${jbundle.rmicodebase}</argument>
	            <argument>-Djava.security.policy=${jbundle-policyfile}</argument>
	            <argument>messageserver=true</argument>
	            <argument>appname=org.jbundle.main.msg.app.MessageServerActivator</argument>
	            <argument>provider=${jbundle.server}</argument>
	        </arguments>
          <systemProperties>
            <systemProperty>
              <key>java.rmi.server.codebase</key>
              <value>http://${jbundle.server}/classes/</value>
            </systemProperty>
            <systemProperty>
              <key>java.security.policy</key>
              <value>${jbundle-policyfile}</value>
            </systemProperty>
          </systemProperties>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.tourgeek.config</groupId>
      <artifactId>tourgeek-config-dep-all</artifactId> 
      <version>0.8.5</version>
      <type>pom</type>
    </dependency>
    <!-- dependency>
      <groupId>javax</groupId>
      <artifactId>j2ee</artifactId>
      <version>1.4</version>
      <scope>system</scope>
      <systemPath>${j2eePath}</systemPath>
    </dependency -->
  </dependencies>

</project>
