From d0df2f761d92fbf94cc0751460f9e36b7b0b357a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 26 一月 2024 13:08:13 +0800
Subject: [PATCH] erp项目代号集成接口开发
---
Source/UBCS/pom.xml | 187 +++++++++++++++++-----------------------------
1 files changed, 70 insertions(+), 117 deletions(-)
diff --git a/Source/UBCS/pom.xml b/Source/UBCS/pom.xml
index bb23751..e14fb72 100644
--- a/Source/UBCS/pom.xml
+++ b/Source/UBCS/pom.xml
@@ -28,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>
@@ -40,7 +41,7 @@
<module>ubcs-plugin-api</module>
<module>ubcs-service</module>
<module>ubcs-service-api</module>
- <module>ubcs-codeApply</module>
+ <!--<module>ubcs-codeApply</module>-->
</modules>
<dependencyManagement>
@@ -106,6 +107,13 @@
<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>
@@ -119,146 +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>
- <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>
-
- <!-- 鎵撳寘鏃跺墧闄ar锛屾斁缃湪lib褰撲腑 -->
- <!-- <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>
- <!– 鎷嗗紑渚濊禆–>
- <mainClass>cn.iocoder.qingning.server.QingningServerApplication</mainClass>
- <layout>ZIP</layout>
- <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>-->
- </plugins>
</build>
<repositories>
--
Gitblit v1.9.3