From f67c6aa89564a9b7b3ed0e0cc8c06d930162baa4 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 22 九月 2023 13:55:11 +0800
Subject: [PATCH] 增加jar包和依赖包分离
---
ruoyi-admin/pom.xml | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml
index 440b99a..dd16999 100644
--- a/ruoyi-admin/pom.xml
+++ b/ruoyi-admin/pom.xml
@@ -71,12 +71,45 @@
<build>
<plugins>
+ <!-- ==================== 渚濊禆jar 浼樺寲start ========================== -->
+ <!-- lib鍖咃紝鎵撳畬涓�娆″悗鍙互娉ㄩ噴鎺変篃鍙互涓嶇锛屽鏋滄湁鏂板紩鍏ョ殑jar鍖呴渶瑕佹妸lib鍖呬笅鐨刯ar鏇存柊鍒版湇鍔″櫒涓嬶紝
+ // 鍘嬬缉鍚巎ar鍖呯殑鍚姩鎸囦护 java -Dloader.path="lib/" -jar xxx.jar
+ // 鏈帇缂﹋ar鍖呯殑鍚姩鎸囦护 java -jar xxx.jar"
+ -->
+<!-- <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>-->
+<!-- <!– 渚濊禆鍖呰緭鍑虹洰褰曪紝灏嗘潵涓嶆墦杩沯ar鍖呴噷 –>-->
+<!-- <outputDirectory>${project.build.directory}/jarLib</outputDirectory>-->
+<!-- <excludeTransitive>false</excludeTransitive>-->
+<!-- <stripVersion>false</stripVersion>-->
+<!-- <includeScope>runtime</includeScope>-->
+<!-- </configuration>-->
+<!-- </execution>-->
+<!-- </executions>-->
+<!-- </plugin>-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<configuration>
<fork>true</fork> <!-- 濡傛灉娌℃湁璇ラ厤缃紝devtools涓嶄細鐢熸晥 -->
+ <mainClass>com.ruoyi.RuoYiApplication</mainClass>
+ <layout>ZIP</layout>
+ <includes>
+ <include>
+ <groupId>nothing</groupId>
+ <artifactId>nothing</artifactId>
+ </include>
+ </includes>
</configuration>
<executions>
<execution>
--
Gitblit v1.9.3