From a042e0e63f86a0880d20e57c14ec4a60b65801fb Mon Sep 17 00:00:00 2001
From: wanghc <2466022993@qq.com>
Date: Tue, 04 Jul 2023 09:07:47 +0800
Subject: [PATCH] 浦发分行受托支付
---
cmci-pfcs-gateway/pom.xml | 165 +++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 118 insertions(+), 47 deletions(-)
diff --git a/cmci-pfcs-gateway/pom.xml b/cmci-pfcs-gateway/pom.xml
index e57d545..6f14d1c 100644
--- a/cmci-pfcs-gateway/pom.xml
+++ b/cmci-pfcs-gateway/pom.xml
@@ -77,57 +77,128 @@
</resources>
<plugins>
+ <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
<plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <!-- docker 镜像生成 -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.0</version>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <!-- 镜像名 -->
- <imageName>${project.artifactId}</imageName>
- <!-- Dockerfile所在目录 -->
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <!-- 生成的jar文件 -->
- <buildArgs>
- <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
- </buildArgs>
- <!-- 复制jar到docker容器指定目录 -->
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
+ <classesDirectory>target/classes/</classesDirectory>
+ <archive>
+ <manifest>
+ <mainClass>com.jttech.pfcs.Application</mainClass>
+ <!-- 打包时 MANIFEST.MF文件不记录的时间戳版本 -->
+ <useUniqueVersions>false</useUniqueVersions>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>lib/</classpathPrefix>
+ </manifest>
+ <manifestEntries>
+ <Class-Path>.</Class-Path>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
- <!-- wsdl生成插件 生成了就不用了 这里注释掉 -->
-<!-- <plugin>-->
-<!-- <groupId>org.apache.cxf</groupId>-->
-<!-- <artifactId>cxf-codegen-plugin</artifactId>-->
-<!-- <version>3.5.1</version>-->
-<!-- <executions>-->
-<!-- <execution>-->
-<!-- <id>generate-sources</id>-->
-<!-- <phase>generate-sources</phase>-->
-<!-- <configuration>-->
-<!-- <!– xml文件 –>-->
-<!-- <sourceRoot>src/main/java</sourceRoot>-->
-<!-- <wsdlRoot>${basedir}/src/main/resources/wsdl</wsdlRoot>-->
-<!-- <includes>-->
-<!-- <include>*.wsdl</include>-->
-<!-- </includes>-->
-<!-- </configuration>-->
-<!-- <goals>-->
-<!-- <goal>wsdl2java</goal>-->
-<!-- </goals>-->
-<!-- </execution>-->
-<!-- </executions>-->
-<!-- </plugin>-->
+
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources-bin</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/bin</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources/bin</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-resources-html5</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/html5</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources/html5</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-resources-static</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/static</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources/static</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </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>
+ <type>jar</type>
+ <includeTypes>jar</includeTypes>
+ <outputDirectory>
+ ${project.build.directory}/lib
+ </outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-junit47</artifactId>
+ <version>2.12</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.7</source>
+ <target>1.7</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
</build>
--
Gitblit v1.8.0