From f0ad156e16359358abd8482cd2a99b0f1c5541da Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 13 Feb 2020 23:09:03 +0100 Subject: [PATCH] Tweaks pom to create jar file with all dependencies --- pom.xml | 78 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index c8b750e..38ca2a0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 net.knarcraft.minecraftserverlauncher - minecraftserverlauncher + minecraft-server-launcher 1.0-SNAPSHOT jar @@ -40,29 +40,6 @@ 1.8 - - - knarcraft - KnarCraft Repository - https://git.knarcraft.net/KnarCraft/Minecraft-Server-Launcher - default - - false - - - - - - - false - internal.repo - KnarCraft Repository - https://git.knarcraft.net - default - - https://git.knarcraft.net/KnarCraft/Minecraft-Server-Launcher - - @@ -80,6 +57,49 @@ + + maven-assembly-plugin + + true + + + true + net.knarcraft.minecraftserverlauncher.Main + + + + jar-with-dependencies + + + + + make-jar-with-dependencies + package + + single + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${project.build.directory}/lib + true + true + true + + + + ${project.basedir}/target ${project.build.directory}/classes @@ -100,16 +120,16 @@ + + com.google.code.gson + gson + 2.8.5 + junit junit 4.11 test - - com.google.code.gson - gson - 2.8.5 - \ No newline at end of file