From 880eaa5d7d009965bf02fb576d619ad2a82c732f Mon Sep 17 00:00:00 2001 From: MathieuOuillon Date: Thu, 12 Jun 2025 13:15:17 -0400 Subject: [PATCH 1/5] Fix ModelZooNotFound for ALERT The ai.djl library are now in coatjava/lib/services --- reconstruction/alert/pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reconstruction/alert/pom.xml b/reconstruction/alert/pom.xml index d65761ea3f..10df264f18 100644 --- a/reconstruction/alert/pom.xml +++ b/reconstruction/alert/pom.xml @@ -145,6 +145,26 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.2 + + + copy-dependencies + package + + copy-dependencies + + + ../../coatjava/lib/services + runtime + + + + + From f0efc178bbd07fd0ad63b47d90de4ebb6cdef4aa Mon Sep 17 00:00:00 2001 From: MathieuOuillon Date: Tue, 17 Jun 2025 11:14:22 -0400 Subject: [PATCH 2/5] Now the all the ai.djl dependency are is a signle jar file --- reconstruction/alert/pom.xml | 54 +++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/reconstruction/alert/pom.xml b/reconstruction/alert/pom.xml index 10df264f18..2148c32ea4 100644 --- a/reconstruction/alert/pom.xml +++ b/reconstruction/alert/pom.xml @@ -146,22 +146,50 @@ + org.apache.maven.plugins - maven-dependency-plugin - 3.1.2 + maven-shade-plugin + 3.4.1 + + + shade-djl + package + + shade + + + + + ai.djl:* + ai.djl.pytorch:* + + + ${project.build.directory}/ai-djl-${project.version}.jar + false + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 3.1.0 - - copy-dependencies - package - - copy-dependencies - - - ../../coatjava/lib/services - runtime - - + + copy-djl-jar + package + + run + + + + + + + From 42e4868b59a7e214b5ecf380b308beef2db19871 Mon Sep 17 00:00:00 2001 From: MathieuOuillon Date: Wed, 18 Jun 2025 14:09:53 -0400 Subject: [PATCH 3/5] use the copy in build-coatjava --- reconstruction/alert/pom.xml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/reconstruction/alert/pom.xml b/reconstruction/alert/pom.xml index 2148c32ea4..5e7e7a9d03 100644 --- a/reconstruction/alert/pom.xml +++ b/reconstruction/alert/pom.xml @@ -171,28 +171,6 @@ - - - org.apache.maven.plugins - maven-antrun-plugin - 3.1.0 - - - copy-djl-jar - package - - run - - - - - - - - - - From 04ebcb89f7c997770a6411a06cb6533d8302ccff Mon Sep 17 00:00:00 2001 From: MathieuOuillon Date: Fri, 20 Jun 2025 08:42:41 -0400 Subject: [PATCH 4/5] Don't use shared jar just copy the ai.djl libraries to lib/services --- reconstruction/alert/pom.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/reconstruction/alert/pom.xml b/reconstruction/alert/pom.xml index 5e7e7a9d03..88ef362b8c 100644 --- a/reconstruction/alert/pom.xml +++ b/reconstruction/alert/pom.xml @@ -146,7 +146,7 @@ - + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.8.1 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib/services + ai.djl + + + + + + From 3428e0c0ffb669b1fd60184b81981f4e3e313e27 Mon Sep 17 00:00:00 2001 From: MathieuOuillon Date: Fri, 20 Jun 2025 08:53:41 -0400 Subject: [PATCH 5/5] Remove commented lines in pom --- reconstruction/alert/pom.xml | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/reconstruction/alert/pom.xml b/reconstruction/alert/pom.xml index 88ef362b8c..3e9fe53d80 100644 --- a/reconstruction/alert/pom.xml +++ b/reconstruction/alert/pom.xml @@ -146,33 +146,6 @@ - - - org.apache.maven.plugins maven-dependency-plugin