Fix maven build instructions

Maven javafx:run fails because of java 15. This commit also removes some maven stuff, which is not needed anymore
This commit is contained in:
Bixilon 2020-11-03 23:13:44 +01:00
parent e24b657c3f
commit ffe79ed618
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 5 additions and 25 deletions

1
.mvn/jvm.config Normal file
View File

@ -0,0 +1 @@
--enable-preview

View File

@ -77,7 +77,7 @@ We are almost ready to release a beta once !8 is merged.
2. Clone this repo (`git clone https://gitlab.bixilon.de/bixilon/minosoft.git`) 2. Clone this repo (`git clone https://gitlab.bixilon.de/bixilon/minosoft.git`)
3. Change directory (`cd minosoft`) 3. Change directory (`cd minosoft`)
4. Checkout the branch (`git checkout <branch>`). Probably `render` 4. Checkout the branch (`git checkout <branch>`). Probably `render`
5. Run Minosoft with `mvn javafx:run`. If any errors occur, feel free to open an issue. In this early stage it might be helpful 5. Build and run Minosoft with `mvn clean verify exec:java`. If any errors occur, feel free to open an issue. In this early stage it might be helpful
to delete the app data folder (only of minosoft). to delete the app data folder (only of minosoft).

27
pom.xml
View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?><!-- <?xml version="1.0" encoding="UTF-8"?>
<!--
~ Minosoft ~ Minosoft
~ Copyright (C) 2020 Moritz Zwerger ~ Copyright (C) 2020 Moritz Zwerger
~ ~
@ -29,35 +30,13 @@
<compilerArgs>--enable-preview</compilerArgs> <compilerArgs>--enable-preview</compilerArgs>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.4</version>
<configuration>
<mainClass>de.bixilon.minosoft.Minosoft</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<configuration>
<archive>
<manifest>
<mainClass>de.bixilon.minosoft.Minosoft</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<properties> <properties>
<maven.compiler.source>15</maven.compiler.source> <maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target> <maven.compiler.target>15</maven.compiler.target>
<exec.mainClass>de.bixilon.minosoft.Minosoft</exec.mainClass>
</properties> </properties>
<dependencies> <dependencies>