From 7b30b600bc785cb17a64822bf6bdca498c738c40 Mon Sep 17 00:00:00 2001 From: Villu Ruusmann Date: Wed, 7 Aug 2024 09:28:25 +0300 Subject: [PATCH] Improved build configuration --- inst/java/classpath.txt | 19 ++++++++++++ pom.xml | 65 ++++++++++------------------------------- 2 files changed, 35 insertions(+), 49 deletions(-) create mode 100644 inst/java/classpath.txt diff --git a/inst/java/classpath.txt b/inst/java/classpath.txt new file mode 100644 index 0000000..2021c8b --- /dev/null +++ b/inst/java/classpath.txt @@ -0,0 +1,19 @@ +r2pmml-1.0-SNAPSHOT.jar +gson-2.10.1.jar +guava-19.0-minified.jar +istack-commons-runtime-4.0.1.jar +jakarta.activation-2.0.1.jar +jakarta.xml.bind-api-3.0.1.jar +jaxb-core-3.0.2.jar +jaxb-runtime-3.0.2.jar +jcommander-1.72.jar +pmml-converter-1.5.7.jar +pmml-model-1.6.5.jar +pmml-model-metro-1.6.5.jar +pmml-rexp-1.5.6.jar +pmml-rexp-xgboost-1.5.6.jar +pmml-xgboost-1.8.6.jar +slf4j-api-1.7.36.jar +slf4j-jdk14-1.7.36.jar +ubjson-0.1.8.jar +ubjson-gson-0.1.8.jar \ No newline at end of file diff --git a/pom.xml b/pom.xml index bbc7dc6..86a4b30 100644 --- a/pom.xml +++ b/pom.xml @@ -106,6 +106,7 @@ ${project.basedir}/inst/java *.jar + classpath.txt @@ -137,16 +138,6 @@ ${project.basedir}/java - - copy-libraries - - copy-dependencies - - - guava - ${project.basedir}/inst/java - - @@ -183,26 +174,28 @@ - org.apache.maven.plugins - maven-resources-plugin - 3.3.1 + org.jpmml + packager-maven-plugin + 1.0.0 package - copy-resources + create-classpath + + + com.google.guava:guava + + + com.r2pmml.Main + + + META-INF/r2pmml.properties + + ${project.basedir}/inst/java - - - ${project.basedir}/target - - ${project.build.finalName}.jar - - false - - @@ -255,32 +248,6 @@ - - org.jpmml - minify-maven-plugin - 1.0.1 - - - minify-guava - package - - minify - - - - com.google.guava:guava - - - com.r2pmml.Main - - - META-INF/r2pmml.properties - - ${project.basedir}/inst/java - - - -