Added MainClass to manifest, simple build/run instructions

This commit is contained in:
Patrick Surry 2014-12-10 14:04:34 -05:00
parent 70c43df686
commit 165e249694
2 changed files with 24 additions and 0 deletions

View File

@ -3,6 +3,13 @@ DroidQuest
A Java recreation of the classic game Robot Odyssey I A Java recreation of the classic game Robot Odyssey I
Build with:
mvn install
Run with:
java -jar target/dq-1.1-SNAPSHOT.jar
Copyright (c) 2000 Thomas Foote Copyright (c) 2000 Thomas Foote

17
pom.xml
View File

@ -16,6 +16,23 @@
<build> <build>
<sourceDirectory>src</sourceDirectory> <sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.droidquest.DQ</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build> </build>
<dependencies> <dependencies>