From c6be5ad8ef96f5748adad2ded96744b45f5d3dee Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 08 八月 2023 15:07:40 +0800
Subject: [PATCH] 提交代码

---
 Source/UBCS/pom.xml |  153 ++++++++++++++++++++++++++++++--------------------
 1 files changed, 92 insertions(+), 61 deletions(-)

diff --git a/Source/UBCS/pom.xml b/Source/UBCS/pom.xml
index bb23751..638be2b 100644
--- a/Source/UBCS/pom.xml
+++ b/Source/UBCS/pom.xml
@@ -28,6 +28,8 @@
         <docker.password>Harbor12345</docker.password>
         <docker.namespace>ubcs</docker.namespace>
         <docker.plugin.version>1.4.13</docker.plugin.version>
+        <!-- 鍚勫瓙妯″潡鎸夊疄闄呯洰褰曞眰娆″畾涔夌浉瀵规暟鎹紝浣挎墍鏈夋湇鍔℃ā鍧楄緭鍑鸿祫婧愭眹鑱氬埌鐩稿悓鐩綍锛岃瑙佸瓙鐩綍瀹氫箟绀轰緥 -->
+        <boot-jar-output>${project.build.directory}</boot-jar-output>
     </properties>
 
     <modules>
@@ -115,7 +117,7 @@
             </resource>
         </resources>
         <pluginManagement>
-            <plugins>
+            <!--<plugins>
                 <plugin>
                     <groupId>org.springframework.boot</groupId>
                     <artifactId>spring-boot-maven-plugin</artifactId>
@@ -146,8 +148,8 @@
                             <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
                         </buildArgs>
                     </configuration>
-                    <!--瀛愭湇鍔℃坊鍔犲涓嬮厤缃紝杩愯 mvn deploy 鍛戒护渚夸細鑷姩鎵撳寘闀滃儚-->
-                    <!--<executions>
+                    &lt;!&ndash;瀛愭湇鍔℃坊鍔犲涓嬮厤缃紝杩愯 mvn deploy 鍛戒护渚夸細鑷姩鎵撳寘闀滃儚&ndash;&gt;
+                    &lt;!&ndash;<executions>
                         <execution>
                             <id>default</id>
                             <goals>
@@ -155,7 +157,7 @@
                                 <goal>push</goal>
                             </goals>
                         </execution>
-                    </executions>-->
+                    </executions>&ndash;&gt;
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
@@ -168,7 +170,7 @@
                             </goals>
                             <configuration>
                                 <tasks>
-                                    <!--suppress UnresolvedMavenProperty -->
+                                    &lt;!&ndash;suppress UnresolvedMavenProperty &ndash;&gt;
                                     <copy overwrite="true"
                                           tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
                                           file="${project.build.directory}/${project.artifactId}.jar" />
@@ -177,9 +179,91 @@
                         </execution>
                     </executions>
                 </plugin>
+            </plugins>-->
+            <plugins>
+                <plugin>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-maven-plugin</artifactId>
+                    <version>${spring.boot.version}</version> <!-- 濡傛灉 spring.boot.version 鐗堟湰淇敼锛屽垯杩欓噷涔熻璺熺潃淇敼 -->
+                    <configuration>
+                        <fork>true</fork>
+                        <!--瑙e喅windows鍛戒护琛岀獥鍙d腑鏂囦贡鐮�-->
+                        <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
+                        <!-- 鎷嗗紑渚濊禆-->
+                        <layout>ZIP</layout>
+                        <outputDirectory>../../target</outputDirectory>
+                        <includes>
+                            <include>
+                                <!-- 鎺掗櫎鎵�鏈塉ar -->
+                                <groupId>nothing</groupId>
+                                <artifactId>nothing</artifactId>
+                            </include>
+                        </includes>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <goals>
+                                <goal>repackage</goal> <!-- 灏嗗紩鍏ョ殑 jar 鎵撳叆鍏朵腑 -->
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+                <!--姝ゆ彃浠剁敤浜庡皢渚濊禆鍖呮娊鍑�-->
+                <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>
+                                <outputDirectory>../../target/lib</outputDirectory>
+                                <excludeTransitive>false</excludeTransitive>
+                                <stripVersion>false</stripVersion>
+                                <includeScope>runtime</includeScope>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
+                <plugin>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <configuration>
+                        <skip>true</skip>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <version>${maven.plugin.version}</version>
+                    <configuration>
+                        <source>${java.version}</source>
+                        <target>${java.version}</target>
+                        <encoding>UTF-8</encoding>
+                        <compilerArgs>
+                            <arg>-parameters</arg>
+                        </compilerArgs>
+                    </configuration>
+                </plugin>
+                <!-- 鍩轰簬maven-jar-plugin鎻掍欢瀹炵幇鎶婁緷璧杍ar瀹氫箟鍐欏叆杈撳嚭jar鐨凪ETA-INFO/MANIFEST鏂囦欢 -->
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-jar-plugin</artifactId>
+                    <configuration>
+                        <archive>
+                            <manifest>
+                                <addClasspath>true</addClasspath>
+                                <classpathPrefix>lib/</classpathPrefix>
+                                <useUniqueVersions>false</useUniqueVersions>
+                            </manifest>
+                        </archive>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
-        <plugins>
+
+        <!--<plugins>
             <plugin>
                 <groupId>com.spotify</groupId>
                 <artifactId>dockerfile-maven-plugin</artifactId>
@@ -204,61 +288,8 @@
                 </configuration>
             </plugin>
 
-            <!-- 鎵撳寘鏃跺墧闄ar锛屾斁缃湪lib褰撲腑 -->
-           <!-- <plugin>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-maven-plugin</artifactId>
-                <version>${spring.boot.version}</version> &lt;!&ndash; 濡傛灉 spring.boot.version 鐗堟湰淇敼锛屽垯杩欓噷涔熻璺熺潃淇敼 &ndash;&gt;
-                <configuration>
-                    <fork>true</fork>
-                    &lt;!&ndash;瑙e喅windows鍛戒护琛岀獥鍙d腑鏂囦贡鐮�&ndash;&gt;
-                    <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
-                    &lt;!&ndash; 鎷嗗紑渚濊禆&ndash;&gt;
-                    <mainClass>cn.iocoder.qingning.server.QingningServerApplication</mainClass>
-                    <layout>ZIP</layout>
-                    <includes>
-                        <include>
-                            &lt;!&ndash; 鎺掗櫎鎵�鏈塉ar &ndash;&gt;
-                            <groupId>nothing</groupId>
-                            <artifactId>nothing</artifactId>
-                        </include>
-                    </includes>
-                </configuration>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>repackage</goal> &lt;!&ndash; 灏嗗紩鍏ョ殑 jar 鎵撳叆鍏朵腑 &ndash;&gt;
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-            &lt;!&ndash;姝ゆ彃浠剁敤浜庡皢渚濊禆鍖呮娊鍑�&ndash;&gt;
-            <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>
-                            <outputDirectory>../target/lib</outputDirectory>
-                            <excludeTransitive>false</excludeTransitive>
-                            <stripVersion>false</stripVersion>
-                            <includeScope>runtime</includeScope>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>-->
-        </plugins>
+        </plugins>-->
+
     </build>
 
     <repositories>

--
Gitblit v1.9.3