From f429658e8bf3c88c4550171f61d6984033940b54 Mon Sep 17 00:00:00 2001 From: wanghc <2466022993@qq.com> Date: Thu, 09 Mar 2023 09:22:47 +0800 Subject: [PATCH] 浦发分行系统文件上传 --- cmci-pfcs-gateway/pom.xml | 42 +++++++++++++++++++++++++++++++++--------- 1 files changed, 33 insertions(+), 9 deletions(-) diff --git a/cmci-pfcs-gateway/pom.xml b/cmci-pfcs-gateway/pom.xml index 803ae3a..e57d545 100644 --- a/cmci-pfcs-gateway/pom.xml +++ b/cmci-pfcs-gateway/pom.xml @@ -45,15 +45,15 @@ <version>2.0.2</version> </dependency> <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-starter-test</artifactId> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>org.junit.vintage</groupId> - <artifactId>junit-vintage-engine</artifactId> - </exclusion> - </exclusions> + <groupId>com.squareup.okhttp3</groupId> + <artifactId>okhttp</artifactId> + <version>3.3.1</version> + </dependency> + <!-- jcraft sftp --> + <dependency> + <groupId>com.jcraft</groupId> + <artifactId>jsch</artifactId> + <version>0.1.53</version> </dependency> <dependency> <groupId>com.alibaba</groupId> @@ -81,6 +81,30 @@ <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> + <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> + </configuration> + </plugin> <!-- wsdl生成插件 生成了就不用了 这里注释掉 --> <!-- <plugin>--> <!-- <groupId>org.apache.cxf</groupId>--> -- Gitblit v1.8.0