From d9183aa80ae17d36b79dda48c6b1d7fa22a80ee3 Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期三, 22 一月 2025 11:20:41 +0800
Subject: [PATCH] 现场型号代号/人员/组织接口调试

---
 Source/UBCS/pom.xml |  138 ++++++++++++++++++++++++---------------------
 1 files changed, 74 insertions(+), 64 deletions(-)

diff --git a/Source/UBCS/pom.xml b/Source/UBCS/pom.xml
index 2f05c8e..c58d13a 100644
--- a/Source/UBCS/pom.xml
+++ b/Source/UBCS/pom.xml
@@ -10,16 +10,17 @@
 
     <properties>
         <bladex.project.version>3.0.1.RELEASE</bladex.project.version>
-
         <java.version>1.8</java.version>
         <maven.plugin.version>3.8.0</maven.plugin.version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <orai18n.version>11.2.0.4</orai18n.version>
+        <mybatisplus.join.version>1.4.4.1</mybatisplus.join.version>
         <spring.boot.version>2.7.1</spring.boot.version>
         <spring.cloud.version>2021.0.3</spring.cloud.version>
         <spring.platform.version>Cairo-SR8</spring.platform.version>
-
+        <maven.plugin.version>3.8.1</maven.plugin.version>
+        <axis2.version>1.7.5</axis2.version>
         <!-- 鎺ㄨ崘浣跨敤Harbor -->
         <docker.registry.url>192.168.0.157</docker.registry.url>
         <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
@@ -27,6 +28,7 @@
         <docker.password>Harbor12345</docker.password>
         <docker.namespace>ubcs</docker.namespace>
         <docker.plugin.version>1.4.13</docker.plugin.version>
+        <server.lib.path>../../target/libs</server.lib.path>
     </properties>
 
     <modules>
@@ -39,6 +41,7 @@
         <module>ubcs-plugin-api</module>
         <module>ubcs-service</module>
         <module>ubcs-service-api</module>
+        <!--<module>ubcs-codeApply</module>-->
     </modules>
 
     <dependencyManagement>
@@ -98,11 +101,19 @@
             <url>http://dev.yunkeruida.top:9000/repository/maven-snapshots/</url>
         </snapshotRepository>
     </distributionManagement>
+
     <build>
         <finalName>${project.name}</finalName>
         <resources>
             <resource>
                 <directory>src/main/resources</directory>
+                <excludes>
+                    <!--<exclude>bootstrap.yml</exclude>
+                    <exclude>application.yml</exclude>
+                    <exclude>application-dev.yml</exclude>
+                    <exclude>application-test.yml</exclude>
+                    <exclude>application-prop.yml</exclude>-->
+                </excludes>
             </resource>
             <resource>
                 <directory>src/main/java</directory>
@@ -116,92 +127,91 @@
                 <plugin>
                     <groupId>org.springframework.boot</groupId>
                     <artifactId>spring-boot-maven-plugin</artifactId>
-                    <version>${spring.boot.version}</version>
+                    <version>${spring.boot.version}</version> <!-- 濡傛灉 spring.boot.version 鐗堟湰淇敼锛屽垯杩欓噷涔熻璺熺潃淇敼 -->
                     <configuration>
                         <fork>true</fork>
-                        <finalName>${project.build.finalName}</finalName>
+                        <!--瑙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>
+                                <goal>repackage</goal> <!-- 灏嗗紩鍏ョ殑 jar 鎵撳叆鍏朵腑 -->
                             </goals>
                         </execution>
                     </executions>
                 </plugin>
-                <plugin>
-                    <groupId>com.spotify</groupId>
-                    <artifactId>dockerfile-maven-plugin</artifactId>
-                    <version>${docker.plugin.version}</version>
-                    <configuration>
-                        <username>${docker.username}</username>
-                        <password>${docker.password}</password>
-                        <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository>
-                        <tag>${project.version}</tag>
-                        <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
-                        <buildArgs>
-                            <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
-                        </buildArgs>
-                    </configuration>
-                    <!--瀛愭湇鍔℃坊鍔犲涓嬮厤缃紝杩愯 mvn deploy 鍛戒护渚夸細鑷姩鎵撳寘闀滃儚-->
-                    <!--<executions>
-                        <execution>
-                            <id>default</id>
-                            <goals>
-                                <goal>build</goal>
-                                <goal>push</goal>
-                            </goals>
-                        </execution>
-                    </executions>-->
-                </plugin>
+                <!--姝ゆ彃浠剁敤浜庡皢渚濊禆鍖呮娊鍑�-->
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-antrun-plugin</artifactId>
+                    <artifactId>maven-dependency-plugin</artifactId>
                     <executions>
                         <execution>
+                            <id>copy-dependencies</id>
                             <phase>package</phase>
                             <goals>
-                                <goal>run</goal>
+                                <goal>copy-dependencies</goal>
                             </goals>
                             <configuration>
-                                <tasks>
-                                    <!--suppress UnresolvedMavenProperty -->
-                                    <copy overwrite="true"
-                                          tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
-                                          file="${project.build.directory}/${project.artifactId}.jar" />
-                                </tasks>
+                                <outputDirectory>${server.lib.path}</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>./libs</classpathPrefix>-->
+                                <classpathPrefix>/data1/ubcs/ubcs-server/libs</classpathPrefix>
+                                <useUniqueVersions>false</useUniqueVersions>
+                            </manifest>
+                        </archive>
+                        <excludes>
+                            <exclude>application-dev.yml</exclude>
+                            <exclude>application-prod.yml</exclude>
+                            <exclude>application.yml</exclude>
+                            <exclude>lib/*</exclude>
+                        </excludes>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
-        <plugins>
-            <plugin>
-                <groupId>com.spotify</groupId>
-                <artifactId>dockerfile-maven-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
-            <!--springboot鎵撳寘鎻掍欢浼氬幓鎵炬瘡涓ā鍧椾笅闈㈢殑鍚姩绫伙紝鍥犱负褰撳墠鏈変笉闇�瑕佸惎鍔ㄧ被鐨勯渶姹傦紝鎵�浠ユ敞閲婃帀锛屼娇鐢╩vn鐨勬墦鍖呮彃浠�-->
-            <!--<plugin>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-maven-plugin</artifactId>
-            </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>
-        </plugins>
     </build>
 
     <repositories>

--
Gitblit v1.9.3