From fcdee3b9c488124a90c9f276be582ba6aac5c75e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 16 五月 2025 11:01:08 +0800
Subject: [PATCH] 增加lib打包配置

---
 smart-man-boot/pom.xml |   83 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 69 insertions(+), 14 deletions(-)

diff --git a/smart-man-boot/pom.xml b/smart-man-boot/pom.xml
index b3458e1..518aabd 100644
--- a/smart-man-boot/pom.xml
+++ b/smart-man-boot/pom.xml
@@ -134,16 +134,7 @@
             <artifactId>smart-starter-social</artifactId>
             <version>1.0.0</version>
         </dependency>
-        <!--
-
         
-		-->
-        
-		<!--
-        
-		
-        
-		-->
         <dependency>
             <groupId>com.github.xiaoymin</groupId>
             <artifactId>knife4j-spring-ui</artifactId>
@@ -287,16 +278,18 @@
         
         
         <!--  coderule -->
-		<!-- 
+		
         
-		 -->
+		
 		 
 		 <!--  Task鍙戦�佸櫒 -->
+		 <!-- 
         <dependency>
             <groupId>com.qianwen</groupId>
             <artifactId>smart-starter-task</artifactId>
             <version>1.0.0</version>
         </dependency>
+         -->
 		 <!-- Notify閫氱煡涓績 -->
         <dependency>
             <groupId>com.qianwen</groupId>
@@ -327,13 +320,14 @@
             <artifactId>smart-starter-websocket</artifactId>
             <version>1.0.0</version>
         </dependency>
-
+	<!--
+		 starter-taskzhong 鍖呭惈姝や緷璧�
 		<dependency>
 		    <groupId>org.apache.rocketmq</groupId>
 		    <artifactId>rocketmq-client</artifactId>
 		    <version>4.5.2</version>
 		</dependency>
-		
+		-->
 		<dependency>
 		    <groupId>org.springframework.integration</groupId>
 		    <artifactId>spring-integration-mqtt</artifactId>
@@ -394,6 +388,13 @@
             <!--<version>1.1.0-SNAPSHOT</version>-->
             <version>1.0.4</version>
         </dependency>
+        <!--鍗冩枃瀵嗛挜璁よ瘉-->
+        <dependency>
+			<groupId>com.qianwen</groupId>
+			<artifactId>license-common</artifactId>
+			<version>1.0.0</version>
+		</dependency>
+		
         <!-- 鍥剧墖鍘嬬缉 -->
         <dependency>
             <groupId>net.coobird</groupId>
@@ -495,6 +496,27 @@
 			<groupId>commons-fileupload</groupId>
 		  <artifactId>commons-fileupload</artifactId>
 		</dependency>
+		
+		<dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        
+        
+        <dependency>
+		    <groupId>org.jfree</groupId>
+		    <artifactId>jfreechart</artifactId>
+		    <version>1.5.5</version>
+		</dependency>
+		
+		<!--lincense楠岃瘉-->
+		<dependency>
+            <groupId>de.schlichtherle.truelicense</groupId>
+            <artifactId>truelicense-core</artifactId>
+            <version>1.33</version>
+        </dependency>
+
     </dependencies>
 	
   <build>
@@ -551,6 +573,18 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+					<mainClass>com.qianwen.smartman.Application</mainClass>
+                    <layout>ZIP</layout>
+                    <includes>
+                         
+                        <include>
+                            <groupId>nothing</groupId>
+                            <artifactId>nothing</artifactId>
+                        </include>
+                        
+                    </includes>
+                </configuration>
             </plugin>
             <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
@@ -563,7 +597,28 @@
                     </compilerArgs>
                 </configuration>
             </plugin>
-            
+            <!--浣跨敤: mvn -pl smart-man-boot clean dependency:copy-dependencies-->
+            <plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-dependencies</id>
+						<phase>package</phase>
+						<goals>
+							<goal>copy-dependencies</goal>
+						</goals>
+						<configuration>
+							<!-- 鎷疯礉椤圭洰渚濊禆鍖呭埌lib/鐩綍涓� -->
+							<outputDirectory>${project.build.directory}/lib</outputDirectory>
+							<overWriteReleases>false</overWriteReleases>
+							<overWriteSnapshots>false</overWriteSnapshots>
+							<overWriteIfNewer>true</overWriteIfNewer>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			
             <plugin>
 		         <groupId>org.apache.maven.plugins</groupId>
 		         <artifactId>maven-resources-plugin</artifactId>

--
Gitblit v1.9.3