Skip to content

Commit d445d09

Browse files
committed
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 ...
1 parent 45ae12c commit d445d09

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Everest uses Maven, so building from the source code is very simple. You need to
9797
1. Clone the repository: `git clone https://github.com/RohitAwate/Everest.git`
9898
2. Enter the repository: `cd Everest`
9999
3. Build a binary: `mvn package`
100-
4. Run the binary: `java -jar target/Everest-Alpha-1.X.jar` replacing 'X' with the current version.
100+
4. Run the binary: `mvn exec:java`.
101101

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

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2727
<maven.compiler.source>1.8</maven.compiler.source>
2828
<maven.compiler.target>1.8</maven.compiler.target>
29+
<main.class>com.rohitawate.everest.Main</main.class>
2930
</properties>
3031
<build>
3132
<plugins>
@@ -45,14 +46,22 @@
4546
<!-- add Main-Class to manifest file -->
4647
<transformer
4748
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
48-
<mainClass>com.rohitawate.everest.Main</mainClass>
49+
<mainClass>${main.class}</mainClass>
4950
</transformer>
5051
</transformers>
5152
</configuration>
5253
</execution>
5354
</executions>
5455
</plugin>
5556

57+
<plugin>
58+
<groupId>org.codehaus.mojo</groupId>
59+
<artifactId>exec-maven-plugin</artifactId>
60+
<version>1.6.0</version>
61+
<configuration>
62+
<mainClass>${main.class}</mainClass>
63+
</configuration>
64+
</plugin>
5665
</plugins>
5766
</build>
5867
<dependencies>

0 commit comments

Comments
 (0)