From 57ae5ff74afbaddb66e89d532b9cdd5b428a72e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=95=B8=E9=9D=9E?= <8153694@qq.com>
Date: Sun, 27 Apr 2025 15:39:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9pom?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 agent-manager/assembly/assembly.xml | 37 +++++++++++++++++++++++++++++
 agent-manager/pom.xml               |  2 +-
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 agent-manager/assembly/assembly.xml

diff --git a/agent-manager/assembly/assembly.xml b/agent-manager/assembly/assembly.xml
new file mode 100644
index 0000000..19f6467
--- /dev/null
+++ b/agent-manager/assembly/assembly.xml
@@ -0,0 +1,37 @@
+<assembly
+        xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+    <id>release</id>
+    <formats>
+        <format>tar.gz</format>
+    </formats>
+
+    <fileSets>
+        <fileSet>
+            <directory>target/bin</directory>
+            <outputDirectory>bin</outputDirectory>
+            <fileMode>0755</fileMode>
+        </fileSet>
+        <fileSet>
+            <directory>${project.parent.basedir}/dist/${project.parent.artifactId}/boot</directory>
+            <outputDirectory>boot</outputDirectory>
+            <fileMode>0755</fileMode>
+        </fileSet>
+        <fileSet>
+            <directory>./db</directory>
+            <includes>
+                <include>*.sql</include>
+            </includes>
+            <outputDirectory>db</outputDirectory>
+            <fileMode>0755</fileMode>
+        </fileSet>
+    </fileSets>
+
+    <files>
+        <file>
+            <source>target/${project.artifactId}-${project.version}.jar</source>
+            <outputDirectory>boot</outputDirectory>
+        </file>
+    </files>
+</assembly>
\ No newline at end of file
diff --git a/agent-manager/pom.xml b/agent-manager/pom.xml
index c936658..4df22c8 100644
--- a/agent-manager/pom.xml
+++ b/agent-manager/pom.xml
@@ -219,7 +219,7 @@
 							<finalName>${project.artifactId}</finalName>
 							<appendAssemblyId>false</appendAssemblyId>
 							<descriptors>
-								<descriptor>../assembly/assembly.xml</descriptor>
+								<descriptor>./assembly/assembly.xml</descriptor>
 							</descriptors>
 							<outputDirectory>${project.parent.basedir}/dist/${project.artifactId}</outputDirectory>
 						</configuration>
-- 
2.24.3