From 92dfc2c345a765e675880b124e8c0b4ffc9fb505 Mon Sep 17 00:00:00 2001 From: David Kleiven Date: Mon, 2 Oct 2023 13:33:37 +0200 Subject: [PATCH] ServiceLoader seems to not work good with a fat-jar. Build a slim jar instead and add dependency-jars to classpath --- pom.xml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index a340ad4..6de383e 100644 --- a/pom.xml +++ b/pom.xml @@ -111,22 +111,31 @@ org.apache.maven.plugins - maven-assembly-plugin + maven-jar-plugin + 3.3.0 + + + + true + ${main.class} + dependency-jars/ + + + + + + org.apache.maven.plugins + maven-dependency-plugin 3.6.0 - make-assembly + copy-dependencies package - single + + copy-dependencies + - - - ${main.class} - - - - jar-with-dependencies - + ${project.build.directory}/dependency-jars/