From b1dde28ba5ae5da78ebc210c5d5be0f500b7472d Mon Sep 17 00:00:00 2001 From: = Date: Thu, 14 May 2026 13:08:30 +0200 Subject: [PATCH] Feat: Updated pom and Launch config Added maven shade to export with javafx. Also fixed main class structure to allow .jar to work. --- pom.xml | 22 ++++++++++++++++++- .../idi/idatt2003/g40/mappe/Launcher.java | 7 ++++++ .../ntnu/idi/idatt2003/g40/mappe/Main.java | 4 ++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Launcher.java diff --git a/pom.xml b/pom.xml index f5081aa..56c4c21 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ edu.ntnu.idi.idatt2003.g40.mappe mappe - 1.1-SNAPSHOT + 1.0.0 25 @@ -39,6 +39,26 @@ + + org.apache.maven.plugins + maven-shade-plugin + 3.5.0 + + + package + + shade + + + + + edu.ntnu.idi.idatt2003.g40.mappe.Launcher + + + + + + org.apache.maven.plugins maven-compiler-plugin diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Launcher.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Launcher.java new file mode 100644 index 0000000..7d78de0 --- /dev/null +++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Launcher.java @@ -0,0 +1,7 @@ +package edu.ntnu.idi.idatt2003.g40.mappe; + +public class Launcher { + static void main(String[] args) { + Main.main(args); + } +} \ No newline at end of file diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java index b94ca01..ded0116 100644 --- a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java +++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java @@ -40,6 +40,10 @@ * */ public class Main extends Application { + static void main(String[] args) { + launch(args); + } + /** * {@inheritDoc} * */