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 | 57 +++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 39 insertions(+), 18 deletions(-) diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml index 3c953da..dd16999 100644 --- a/ruoyi-admin/pom.xml +++ b/ruoyi-admin/pom.xml @@ -26,25 +26,13 @@ <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <!-- 琛ㄧず渚濊禆涓嶄細浼犻�� --> </dependency> + <!--knife4j渚濊禆--> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> + <version>3.0.3</version> </dependency> - <!-- swagger3--> - <dependency> - <groupId>io.springfox</groupId> - <artifactId>springfox-boot-starter</artifactId> - </dependency> - - <!-- 闃叉杩涘叆swagger椤甸潰鎶ョ被鍨嬭浆鎹㈤敊璇紝鎺掗櫎3.0.0涓殑寮曠敤锛屾墜鍔ㄥ鍔�1.6.2鐗堟湰 --> - <dependency> - <groupId>io.swagger</groupId> - <artifactId>swagger-models</artifactId> - <version>1.6.2</version> - </dependency> - <!-- Postgresql椹卞姩鍖� --> - <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql --> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> @@ -75,16 +63,53 @@ <artifactId>ard-work</artifactId> <version>3.8.5</version> </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-autoconfigure</artifactId> + </dependency> </dependencies> <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> @@ -113,10 +138,6 @@ <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE> </buildArgs> </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> </plugin> </plugins> <finalName>${project.artifactId}</finalName> -- Gitblit v1.9.3