Merge pull request #24 from Riduidel/features/easier_run
Run Everest with mvn:exec plugin
This commit is contained in:
commit
d7028723ae
2 changed files with 11 additions and 2 deletions
|
@ -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
11
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue