Forgot the pom.xml

This commit is contained in:
RyanTheAllmighty 2014-04-30 21:14:22 +10:00
parent e7873ab43d
commit d05208a5fd
3 changed files with 155 additions and 100 deletions

5
.gitignore vendored
View file

@ -6,7 +6,6 @@
!/src/
!/macapp/
!/.gitignore
!/build.xml
!/launch4j.xml
!/LICENSE
!/README.md
!/README.md
!/pom.xml

View file

@ -1,97 +0,0 @@
<!--
REMEMBER - Change the atlauncher.version property below
3.0.8
-
-->
<project name="ATLauncher" basedir=".">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="macapp.dir" value="macapp" />
<property name="release.dir" value="release" />
<property name="buildsrc.dir" value="${build.dir}/src" />
<property name="bin.dir" value="${build.dir}/compiled" />
<property name="atlauncher.version" value="3.0.8" />
<mkdir dir="${build.dir}" />
<mkdir dir="${release.dir}" />
<delete dir="${buildsrc.dir}" />
<delete dir="${bin.dir}" />
<mkdir dir="${buildsrc.dir}" />
<mkdir dir="${bin.dir}" />
<mkdir dir="${macapp.dir}" />
<copy todir="${buildsrc.dir}">
<fileset dir="${src.dir}" />
</copy>
<replace file="${buildsrc.dir}/com/atlauncher/data/Settings.java" token="&quot;%VERSION%&quot;;" value="&quot;${atlauncher.version}&quot;;" />
<replace file="${buildsrc.dir}/com/atlauncher/gui/LauncherConsole.java" token="%VERSION%" value="${atlauncher.version}" />
<replace file="${buildsrc.dir}/com/atlauncher/gui/LauncherFrame.java" token="%VERSION%" value="${atlauncher.version}" />
<javac srcdir="${buildsrc.dir}" destdir="${bin.dir}" target="1.6" source="1.6" includeantruntime="false" />
<copy todir="${bin.dir}/resources">
<fileset dir="${buildsrc.dir}/resources" includes="**" />
</copy>
<jar destfile="${bin.dir}/ATLauncher.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.atlauncher.App" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="${bin.dir}" />
</jar>
<chmod file="${bin.dir}/ATLauncher.jar" perm="ugo+rwx"/>
<copy file="${bin.dir}/ATLauncher.jar" tofile="${release.dir}/ATLauncher.jar"/>
<exec os="Windows NT" executable="cmd">
<arg value="/c" />
<arg value="launch4jc.exe" />
<arg value=".\launch4j.xml" />
</exec>
<exec os="Windows 8" executable="cmd">
<arg value="/c" />
<arg value="launch4jc.exe" />
<arg value=".\launch4j.xml" />
</exec>
<exec os="Windows XP" executable="cmd">
<arg value="/c" />
<arg value="launch4jc.exe" />
<arg value=".\launch4j.xml" />
</exec>
<exec os="Mac OS X" executable="launch4j">
<arg value="launch4j.xml" />
</exec>
<exec os="Linux" executable="launch4j">
<arg value="launch4j.xml" />
</exec>
<mkdir dir="${bin.dir}/ATLauncher.app" />
<copy todir="${bin.dir}/ATLauncher.app">
<fileset dir="${macapp.dir}" includes="**" />
</copy>
<copy file="${bin.dir}/ATLauncher.jar" tofile="${bin.dir}/ATLauncher.app/Contents/Resources/Java/ATLauncher.jar"/>
<copy file="${src.dir}/resources/Icon.icns" tofile="${bin.dir}/ATLauncher.app/Contents/Resources/Icon.icns"/>
<replace file="${bin.dir}/ATLauncher.app/Contents/Info.plist" token="%VERSION%" value="${atlauncher.version}" />
<zip destfile="${release.dir}/ATLauncher.zip">
<zipfileset dir="${bin.dir}/" includes="ATLauncher.app/**" excludes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" />
<zipfileset dir="${bin.dir}/" includes="ATLauncher.app/Contents/MacOS/JavaApplicationStub" filemode="755" />
</zip>
<delete dir="${bin.dir}/ATLauncher.app"/>
<delete dir="${build.dir}" />
</project>

153
pom.xml Normal file
View file

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--suppress ALL -->
<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>com.atlauncher</groupId>
<artifactId>atlauncher</artifactId>
<name>ATLauncher</name>
<version>3.1.25</version>
<organization>
<name>ATLauncher</name>
<url>http://www.github.com/ATLauncher/</url>
</organization>
<packaging>jar</packaging>
<description>ATLauncher is a Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install ModPacks easily and quickly.</description>
<url>https://www.atlauncher.com</url>
<properties>
<project.jdk.version>1.6</project.jdk.version>
<mainclass>com.atlauncher.App</mainclass>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${project.jdk.version}</source>
<target>${project.jdk.version}</target>
<compilerVersion>${project.jdk.version}</compilerVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainclass}</mainClass>
</manifest>
<manifestEntries>
<Implementation-Vender>RyanTheAllmighty</Implementation-Vender>
<Implementation-Version>${project.version}</Implementation-Version>
<Built-By>${user.name}</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>versioned</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>ATLauncher-${project.version}</finalName>
</configuration>
</execution>
<execution>
<id>release</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>ATLauncher</finalName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.5.2</version>
<executions>
<execution>
<id>versioned</id>
<configuration>
<headerType>gui</headerType>
<stayAlive>false</stayAlive>
<jar>${project.build.directory}/ATLauncher-${project.version}.jar</jar>
<outfile>${project.build.directory}/ATLauncher-${project.version}.exe</outfile>
<classPath>
<mainClass>${mainclass}</mainClass>
<addDependencies>false</addDependencies>
<preCp>anything</preCp>
</classPath>
<jre>
<minVersion>1.6.0</minVersion>
</jre>
<icon>src/main/resources/assets/image/Icon.ico</icon>
</configuration>
<goals>
<goal>launch4j</goal>
</goals>
<phase>package</phase>
</execution>
<execution>
<id>release</id>
<configuration>
<headerType>gui</headerType>
<stayAlive>false</stayAlive>
<jar>${project.build.directory}/ATLauncher-${project.version}.jar</jar>
<outfile>${project.build.directory}/ATLauncher.exe</outfile>
<classPath>
<mainClass>${mainclass}</mainClass>
<addDependencies>false</addDependencies>
<preCp>anything</preCp>
</classPath>
<jre>
<minVersion>1.6.0</minVersion>
</jre>
<icon>src/main/resources/assets/image/Icon.ico</icon>
</configuration>
<goals>
<goal>launch4j</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>