Merge pull request #24 from Riduidel/features/easier_run

Run Everest with mvn:exec plugin
This commit is contained in:
Rohit Awate 2018-10-03 18:20:10 +05:30 committed by GitHub
commit d7028723ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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` 1. Clone the repository: `git clone https://github.com/RohitAwate/Everest.git`
2. Enter the repository: `cd Everest` 2. Enter the repository: `cd Everest`
3. Build a binary: `mvn package` 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. **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> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<main.class>com.rohitawate.everest.Main</main.class>
</properties> </properties>
<build> <build>
<plugins> <plugins>
@ -45,7 +46,7 @@
<!-- add Main-Class to manifest file --> <!-- add Main-Class to manifest file -->
<transformer <transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.rohitawate.everest.Main</mainClass> <mainClass>${main.class}</mainClass>
</transformer> </transformer>
</transformers> </transformers>
</configuration> </configuration>
@ -53,6 +54,14 @@
</executions> </executions>
</plugin> </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> </plugins>
</build> </build>
<dependencies> <dependencies>