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

  <groupId>dsol.aos.supplychain.rmi-client</groupId>
  <artifactId>sc-rmi-common</artifactId>
  <version>1.0</version>
  <packaging>jar</packaging>


  <name>DSOL AgentScape SupplyChain RMI client Common implementation</name>
  <url>http://www.gscg.org</url>

  <parent>
    <artifactId>dsol-aos</artifactId>
    <groupId>dsol.aos</groupId>
    <version>1.0</version>
  </parent>
  
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<org.iids.aos.install.type>shared</org.iids.aos.install.type>
    <org.iids.aos.install.path>${env.AGENTSCAPE_HOME}</org.iids.aos.install.path>
  </properties>

  <dependencies>
    <dependency>
      <groupId>dsol.aos.sc</groupId>
      <artifactId>sc-common</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>
  	<!-- 
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>jason</groupId>
      <artifactId>jason</artifactId>
      <version>1.3.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.iids.aos</groupId>
      <artifactId>agentscape-jason-infra</artifactId>
      <version>2.0-m3</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
	  <groupId>dsol.aos</groupId>
	  <artifactId>common</artifactId>
	  <version>1.0</version>
	  <scope>provided</scope>
	</dependency>
    <dependency>
      <groupId>org.iids.aos</groupId>
      <artifactId>agentscape-core</artifactId>
      <version>2.0-m3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.iids.aos</groupId>
      <artifactId>blackboard-service-interface</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.iids.aos</groupId>
      <artifactId>DirectoryServiceInterface</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.iids.aos</groupId>
      <artifactId>servlet-service-api</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
	  <groupId>dsol</groupId>
	  <artifactId>dsol</artifactId>
	  <version>2.1.0</version>
	  <scope>provided</scope>
	</dependency>
     -->
  </dependencies>
  
  <repositories>
    <repository>
      <id>agentscape-public</id>
      <url>http://repo.agentscape.org/repo</url>
    </repository>
  	<repository>
	  <id>dsol</id>
	  <url>http://simulation.tudelft.nl/maven</url>
  	</repository>
  </repositories>
  
  <organization>
  	<name>Delft University of Technology - Systems Engineering Group</name>
  	<url>http://www.sk.tbm.tudelft.nl/</url>
  </organization>
  
  <developers>
    <developer>
      <name>Alexander Verbraeck</name>
      <id>averbraeck</id>
      <email>a.verbraeck@tudelft.nl</email>
      <organization>Delft University of Technology, the Netherlands</organization>
      <url>http://www.tudelft.nl/averbraeck</url>
      <timezone>1</timezone>
    </developer>
    <developer>
      <name>Rick van Krevelen</name>
      <id>dvankrevelen</id>
      <email>d.w.f.vankrevelen@tudelft.nl</email>
      <organization>Delft University of Technology, the Netherlands</organization>
      <url>http://www.tudelft.nl/dwfvankrevelen</url>
      <timezone>1</timezone>
    </developer>
  </developers>
  
  <scm>
    <connection>scm:svn:https://svn.tbm.tudelft.nl/TBM-SK/DSOL-AOS/sc-rmi-common/</connection>
    <url>http://svn.tbm.tudelft.nl/</url>
    <developerConnection>scm:svn:https://svn.tbm.tudelft.nl/TBM-SK/DSOL-AOS/sc-rmi-common/</developerConnection>
  </scm>
  
  <distributionManagement>
    <downloadUrl>http://simulation.tudelft.nl/maven</downloadUrl>
    <repository>
      <uniqueVersion>false</uniqueVersion>
      <id>simulation.tudelft.nl</id>
      <layout>default</layout>
      <name>DSOL repository</name>
      <url>scp://sk-3.tbm.tudelft.nl/home/web/simulation.tudelft.nl/html/maven</url>
    </repository>
  </distributionManagement>
  
  <build>
    <extensions>
      <!-- Enabling the use of FTP -->
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
         <artifactId>wagon-ssh</artifactId>
         <version>1.0-beta-7</version>
      </extension>
    </extensions>
    
    <plugins>
      <!-- 
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <excludeGroupIds>junit</excludeGroupIds>
              <excludeScope>provided</excludeScope>
              <outputDirectory>${org.iids.aos.install.path}/lib/shared</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
       
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
    		  <mainClass>org.gscg.aos.GameLauncherAgent</mainClass>
            </manifest>
            <!-  <manifestEntries>
              <Class-Path>supplychain-game-aos-1.0.jar supplychain-game-management-aos-1.0.jar dsol-gui-2.1.0-jar-with-dependencies.jar</Class-Path>
              <Class-Path>supplychain-game-management-aos-1.0-jar-with-dependencies.jar</Class-Path>
            </manifestEntries> ->
          </archive>
        </configuration>
      </plugin>
    
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.2-beta-5</version>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
           <archive>
             <manifest>
               <addClasspath>false</addClasspath>
             </manifest>
             <manifestEntries>
               <Main-Class>nl.tudelft.simulation.dsol.gui.DSOLApplication</Main-Class>
             </manifestEntries>
           </archive>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id> <!- this is used for inheritance merges ->
            <phase>package</phase> <!- append to the packaging phase. ->
            <goals>
              <goal>single</goal> <!- goals == mojos ->
            </goals>
          </execution>
        </executions>
      </plugin>
       -->

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
       
      <!-- Skip tests -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
      
      <!-- Attach sources -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
			<executions>
				<execution>
					<id>attach-sources</id>
					<goals>
						<goal>jar</goal>
					</goals>
				</execution>
			</executions>
      </plugin>
    </plugins>
  </build>
</project>
