Skip to content

Commit

Permalink
Merge pull request #24 from Riduidel/features/easier_run
Browse files Browse the repository at this point in the history
Run Everest with mvn:exec plugin
  • Loading branch information
RohitAwate committed Oct 3, 2018
2 parents 45ae12c + 90c3e69 commit d702872
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -97,7 +97,7 @@ Everest uses Maven, so building from the source code is very simple. You need to
1. Clone the repository: `git clone https://github.com/RohitAwate/Everest.git`
2. Enter the repository: `cd Everest`
3. Build a binary: `mvn package`
4. Run the binary: `java -jar target/Everest-Alpha-1.X.jar` replacing 'X' with the current version.
4. Run the binary: `mvn exec:java`

**For JDK 10 and above:** JavaFX has been decoupled from the JDK and will need to be installed separately.

Expand Down
11 changes: 10 additions & 1 deletion pom.xml
Expand Up @@ -26,6 +26,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<main.class>com.rohitawate.everest.Main</main.class>
</properties>
<build>
<plugins>
Expand All @@ -45,14 +46,22 @@
<!-- add Main-Class to manifest file -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.rohitawate.everest.Main</mainClass>
<mainClass>${main.class}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>${main.class}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down

0 comments on commit d702872

Please sign in to comment.