Made everest easily runnable in dev mode

Using the exec maven plugin allow easier launch of application by just running two maven commands : `mvn package`and `mvn exec:java`.
They can even be merged `mvn package exec:java`.
It could even be simpler using a profile ...
This commit is contained in:
Riduidel 2018-10-02 11:30:07 +02:00
parent 45ae12c784
commit d445d09c02
2 changed files with 11 additions and 2 deletions

View file

@ -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.

11
pom.xml
View file

@ -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>
@ -45,7 +46,7 @@
<!-- 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>
@ -53,6 +54,14 @@
</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>