add assembly support for Mage.Server

This commit is contained in:
Loki 2010-11-23 21:23:16 +00:00
parent 5b10b13299
commit 7d9d2bc744
2 changed files with 104 additions and 11 deletions

View file

@ -44,7 +44,42 @@
<version>1.2.14</version> <version>1.2.14</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Player-AI</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Deck-Constructed</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Game-FreeForAll</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Game-TwoPlayerDuel</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Player-Human</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>Mage-Player-AIMinimax</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies> </dependencies>
<pluginRepositories> <pluginRepositories>
@ -83,6 +118,26 @@
<target>1.6</target> <target>1.6</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/distribution.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>mage.server.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<configuration> <configuration>

View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1
http://maven.apache.org/xsd/assembly-1.1.1.xsd">
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<includes>
<include>org.mage:Mage-Server</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>/plugins</outputDirectory>
<includes>
<include>org.mage:Mage-Deck-Constructed</include>
<include>org.mage:Mage-Game-FreeForAll</include>
<include>org.mage:Mage-Game-TwoPlayerDuel</include>
<include>org.mage:Mage-Player-AI</include>
<include>org.mage:Mage-Player-AIMinimax</include>
<include>org.mage:Mage-Player-Human</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>/lib/</outputDirectory>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>release/</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>