Browse Source

Added MainClass to manifest, simple build/run instructions

tags/2.8^2
Patrick Surry 4 years ago
parent
commit
165e249694
2 changed files with 24 additions and 0 deletions
  1. 7
    0
      README.md
  2. 17
    0
      pom.xml

+ 7
- 0
README.md View File

@@ -3,6 +3,13 @@ DroidQuest

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


+ 17
- 0
pom.xml View File

@@ -16,6 +16,23 @@

<build>
<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>

<dependencies>

Loading…
Cancel
Save