From 3a1772a3c9ab8862522c7573f42884eb78f64e7f Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Mon, 7 Apr 2025 22:50:26 +0200 Subject: [PATCH] fix: ensure extension zip included in complete package Moved plugin assembly execution to prepare-package phase to ensure the extension zip artifact is created before the package phase. Added maven-resources-plugin execution (copy-plugin-zip) to the package phase to copy the generated extension zip into a reliable 'target/staging' directory. Updated complete-package.xml assembly descriptor to use a fileSet referencing 'target/staging' instead of relying on dependencySets or potentially unstable property expansion for artifact inclusion. This resolves the issue where the complete package artifact was missing the Ghidra extension zip. --- pom.xml | 32 ++++++++++++++++++++++++++++++- src/assembly/complete-package.xml | 9 ++++----- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 1c0bbee..3e20245 100644 --- a/pom.xml +++ b/pom.xml @@ -205,7 +205,7 @@ plugin-assembly - package + prepare-package single @@ -215,6 +215,9 @@ GhydraMCP-${git.commit.id.abbrev}-${maven.build.timestamp} false + + + @@ -235,6 +238,33 @@ + + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + + + copy-plugin-zip + package + + copy-resources + + + ${project.build.directory}/staging + + + ${project.build.directory} + + GhydraMCP-${git.commit.id.abbrev}-${maven.build.timestamp}.zip + + + + + + + diff --git a/src/assembly/complete-package.xml b/src/assembly/complete-package.xml index a11ed40..2cf5bc3 100644 --- a/src/assembly/complete-package.xml +++ b/src/assembly/complete-package.xml @@ -22,12 +22,11 @@ - - - ${project.build.directory} + + + ${project.build.directory}/staging - - GhydraMCP-${git.commit.id.abbrev}-${maven.build.timestamp}.zip + GhydraMCP-*.zip