mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
504 lines
23 KiB
XML
504 lines
23 KiB
XML
<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>
|
|
|
|
<groupId>forge</groupId>
|
|
<artifactId>forge</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>Forge</name>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<description>Forge</description>
|
|
<url>http://www.slightlymagic.net/</url>
|
|
<properties>
|
|
<project.build.sourceEncoding>
|
|
ISO-8859-1
|
|
</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>
|
|
ISO-8859-1
|
|
</project.reporting.outputEncoding>
|
|
</properties>
|
|
<developers>
|
|
<developer>
|
|
<id>RobCashwalker</id>
|
|
<name>Rob Cashwalker</name>
|
|
<roles>
|
|
<role>owner</role>
|
|
</roles>
|
|
</developer>
|
|
<developer>
|
|
<id>DennisBergkamp</id>
|
|
<name>DennisBergkamp</name>
|
|
<roles>
|
|
<role>owner</role>
|
|
</roles>
|
|
</developer>
|
|
<developer>
|
|
<id>ChrisH</id>
|
|
<name>Chris H.</name>
|
|
<roles>
|
|
<role>developer</role>
|
|
</roles>
|
|
</developer>
|
|
</developers>
|
|
<licenses>
|
|
<license>
|
|
<name>GPL 3</name>
|
|
<url>http://www.gnu.org/licenses/gpl-3.0-standalone.html</url>
|
|
</license>
|
|
</licenses>
|
|
<scm>
|
|
<connection>scm:svn:https://cardforge.googlecode.com/</connection>
|
|
<developerConnection>scm:svn:https://cardforge.googlecode.com/</developerConnection>
|
|
</scm>
|
|
<build>
|
|
<sourceDirectory>src</sourceDirectory>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
<artifactId>maven-replacer-plugin</artifactId>
|
|
<version>1.3.8</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>replace</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<file>build/forge.sh</file>
|
|
<outputFile>
|
|
${project.build.directory}/forge.sh
|
|
</outputFile>
|
|
<regex>false</regex>
|
|
<replacements>
|
|
<replacement>
|
|
<token>$project.build.finalName$</token>
|
|
<value>${project.build.finalName}-jar-with-dependencies.jar</value>
|
|
</replacement>
|
|
</replacements>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.2.1</version>
|
|
<configuration>
|
|
<descriptorRefs>
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
</descriptorRefs>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>forge.Gui_NewGame</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<!-- this is used for inheritance merges -->
|
|
<phase>package</phase>
|
|
<!-- bind to the packaging phase -->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.akathist.maven.plugins.launch4j</groupId>
|
|
<artifactId>launch4j-maven-plugin</artifactId>
|
|
<version>1.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>l4j-gui</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>launch4j</goal>
|
|
</goals>
|
|
<configuration>
|
|
<headerType>gui</headerType>
|
|
<outfile>${project.build.directory}/forge.exe</outfile>
|
|
<jar>${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</jar>
|
|
<errTitle>forge</errTitle>
|
|
<icon>${basedir}/build/forge.ico</icon>
|
|
<classPath>
|
|
<mainClass>forge.Gui_NewGame</mainClass>
|
|
<addDependencies>false</addDependencies>
|
|
<preCp>anything</preCp>
|
|
</classPath>
|
|
<jre>
|
|
<minVersion>1.5.0</minVersion>
|
|
</jre>
|
|
<versionInfo>
|
|
<fileVersion>1.0.0.0</fileVersion>
|
|
<txtFileVersion>1.0.0.0</txtFileVersion>
|
|
<fileDescription>Forge</fileDescription>
|
|
<copyright>my copyright</copyright>
|
|
<productVersion>1.0.0.0</productVersion>
|
|
<txtProductVersion>1.0.0.0</txtProductVersion>
|
|
<productName>Forge</productName>
|
|
<internalName>forge</internalName>
|
|
<originalFilename>original.exe</originalFilename>
|
|
</versionInfo>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant-nodeps</artifactId>
|
|
<version>1.7.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<!--
|
|
<execution>
|
|
<id>osx-appbundle</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
OSX archive
|
|
<mkdir dir="${project.build.directory}/${project.build.finalName}-osx"/>
|
|
<copy todir="${project.build.directory}/${project.build.finalName}-osx">
|
|
<fileset dir="${basedir}" includes="LICENSE.txt"/>
|
|
<fileset dir="${basedir}" includes="README.txt"/>
|
|
<fileset dir="${basedir}" includes="CHANGES.txt"/>
|
|
</copy>
|
|
<taskdef name="jarbundler"
|
|
classpathref="maven.runtime.classpath"
|
|
classname="net.sourceforge.jarbundler.JarBundler"/>
|
|
<jarbundler dir="${project.build.directory}/${project.build.finalName}-osx"
|
|
name="${project.name}"
|
|
version="${project.version}"
|
|
mainclass="forge.Gui_NewGame"
|
|
icon="${basedir}/build/Forge.icns"
|
|
jvmversion="1.5+"
|
|
vmoptions="-Xmx1024m"
|
|
shortname="${project.name}"
|
|
workingdirectory="$APP_PACKAGE/Contents/Resources/Java"
|
|
jar="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar">
|
|
<javafileset dir="${basedir}" includes="*.properties"/>
|
|
<javafileset dir="${basedir}" includes="res/**"/>
|
|
<javaproperty name="apple.laf.useScreenMenuBar" value="true"/>
|
|
</jarbundler>
|
|
<exec dir="${project.build.directory}"
|
|
executable="hdiutil"
|
|
failonerror="false">
|
|
<arg line="create -srcfolder ${project.build.directory}/${project.build.finalName}-osx ${project.build.directory}/${project.build.finalName}.dmg"/>
|
|
</exec>
|
|
<tar basedir="${project.build.directory}" includes="${project.build.finalName}.dmg"
|
|
destfile="${project.build.directory}/${project.build.finalName}.osx.tar.bz2"
|
|
compression="bzip2"/>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution> -->
|
|
<execution>
|
|
<id>win-linux-app-bundle</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<!-- Windows/Linux archive -->
|
|
<mkdir dir="${project.build.directory}/${project.build.finalName}"/>
|
|
<copy todir="${project.build.directory}/${project.build.finalName}">
|
|
<fileset dir="${project.build.directory}" includes="forge.sh"/>
|
|
<fileset dir="${basedir}" includes="forge.properties"/>
|
|
<fileset dir="${basedir}" includes="LICENSE.txt"/>
|
|
<fileset dir="${basedir}" includes="README.txt"/>
|
|
<fileset dir="${basedir}" includes="CHANGES.txt"/>
|
|
<fileset dir="${basedir}" includes="res/**"/>
|
|
<fileset dir="${project.build.directory}" includes="forge.exe"/>
|
|
<fileset dir="${project.build.directory}"
|
|
includes="${project.build.finalName}-jar-with-dependencies.jar"/>
|
|
</copy>
|
|
<chmod file="${project.build.directory}/${project.build.finalName}/forge.sh"
|
|
perm="a+rx"/>
|
|
<chmod file="${project.build.directory}/${project.build.finalName}/forge.exe"
|
|
perm="a+rx"/>
|
|
<tar destfile="${project.build.directory}/${project.build.finalName}.tar.bz2"
|
|
compression="bzip2">
|
|
<tarfileset filemode="755"
|
|
dir="${project.build.directory}/${project.build.finalName}">
|
|
<include name="forge.sh"/>
|
|
<include name="forge.exe"/>
|
|
</tarfileset>
|
|
<tarfileset dir="${project.build.directory}/${project.build.finalName}">
|
|
<include name="**"/>
|
|
<exclude name="forge.sh"/>
|
|
<exclude name="forge.exe"/>
|
|
</tarfileset>
|
|
</tar>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<version>2.5</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>2.6</version>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>2.3.2</version>
|
|
<configuration>
|
|
<source>1.5</source>
|
|
<target>1.5</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
<version>2.3</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>2.5</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>2.1.2</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>1.5</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-distribution</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${project.build.directory}/${project.build.finalName}.tar.bz2</file>
|
|
<type>tar.bz2</type>
|
|
</artifact>
|
|
<artifact>
|
|
<file>${project.build.directory}/${project.build.finalName}.osx.tar.bz2</file>
|
|
<classifier>osx</classifier>
|
|
<type>tar.bz2</type>
|
|
</artifact>
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
<reporting>
|
|
<plugins>
|
|
<!-- Configure Built-In Dependency Reports NOT to scan Repos, Saves a LOT of time -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
<version>2.3.1</version>
|
|
<configuration>
|
|
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
|
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
|
|
</configuration>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>index</report>
|
|
<report>plugins</report>
|
|
<report>summary</report>
|
|
<report>dependencies</report>
|
|
<report>project-team</report>
|
|
<report>mailing-list</report>
|
|
<report>cim</report>
|
|
<report>issue-tracking</report>
|
|
<report>license</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.7</version>
|
|
<configuration>
|
|
<quiet>true</quiet>
|
|
<failOnError>false</failOnError>
|
|
<detectOfflineLinks>false</detectOfflineLinks>
|
|
</configuration>
|
|
<reportSets>
|
|
<reportSet>
|
|
<configuration>
|
|
<quiet>true</quiet>
|
|
<failOnError>false</failOnError>
|
|
<detectOfflineLinks>false</detectOfflineLinks>
|
|
</configuration>
|
|
<reports>
|
|
<report>javadoc</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>2.6</version>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.bluestemsoftware.open.maven.plugin</groupId>
|
|
<artifactId>launch4j-plugin</artifactId>
|
|
<version>1.5.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.miglayout</groupId>
|
|
<artifactId>miglayout</artifactId>
|
|
<version>3.7.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.mortennobel</groupId>
|
|
<artifactId>java-image-scaling</artifactId>
|
|
<version>0.8.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.collections</groupId>
|
|
<artifactId>google-collections</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.huxhorn.sulky</groupId>
|
|
<artifactId>de.huxhorn.sulky.3rdparty.jlayer</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.jarbundler</groupId>
|
|
<artifactId>jarbundler</artifactId>
|
|
<version>2.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>arcane-maven-repo</id>
|
|
<name>Arcane</name>
|
|
<url>http://arcane.googlecode.com/svn/trunk/repository</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>arcane-maven-repo</id>
|
|
<name>Arcane Maven Repository</name>
|
|
<layout>default</layout>
|
|
<url>http://arcane.googlecode.com/svn/trunk/repository</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>arcane-maven-repo</id>
|
|
<name>Arcane Maven Repository</name>
|
|
<layout>default</layout>
|
|
<url>http://arcane.googlecode.com/svn/trunk/repository</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>osx</id>
|
|
<activation>
|
|
<os>
|
|
<family>mac</family>
|
|
</os>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant-nodeps</artifactId>
|
|
<version>1.7.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>osx-appbundle</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<!-- OSX archive -->
|
|
<mkdir dir="${project.build.directory}/${project.build.finalName}-osx"/>
|
|
<copy todir="${project.build.directory}/${project.build.finalName}-osx">
|
|
<fileset dir="${basedir}" includes="LICENSE.txt"/>
|
|
<fileset dir="${basedir}" includes="README.txt"/>
|
|
<fileset dir="${basedir}" includes="CHANGES.txt"/>
|
|
</copy>
|
|
<taskdef name="jarbundler"
|
|
classpathref="maven.runtime.classpath"
|
|
classname="net.sourceforge.jarbundler.JarBundler"/>
|
|
<jarbundler dir="${project.build.directory}/${project.build.finalName}-osx"
|
|
name="${project.name}"
|
|
version="${project.version}"
|
|
mainclass="forge.Gui_NewGame"
|
|
icon="${basedir}/build/Forge.icns"
|
|
jvmversion="1.5+"
|
|
vmoptions="-Xmx1024m"
|
|
shortname="${project.name}"
|
|
workingdirectory="$APP_PACKAGE/Contents/Resources/Java"
|
|
jar="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar">
|
|
<javafileset dir="${basedir}" includes="*.properties"/>
|
|
<javafileset dir="${basedir}" includes="res/**"/>
|
|
<javaproperty name="apple.laf.useScreenMenuBar" value="true"/>
|
|
</jarbundler>
|
|
<exec dir="${project.build.directory}"
|
|
executable="hdiutil"
|
|
failonerror="false">
|
|
<arg line="create -srcfolder ${project.build.directory}/${project.build.finalName}-osx ${project.build.directory}/${project.build.finalName}.dmg"/>
|
|
</exec>
|
|
<tar basedir="${project.build.directory}"
|
|
includes="${project.build.finalName}.dmg"
|
|
destfile="${project.build.directory}/${project.build.finalName}.osx.tar.bz2"
|
|
compression="bzip2"/>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|