From 7a72c9b8b5df5f9a16a79838150bbc44c6e87666 Mon Sep 17 00:00:00 2001 From: wanghc <2466022993@qq.com> Date: Tue, 27 Jun 2023 13:16:38 +0800 Subject: [PATCH] 启动修改 --- cmci-pfcs-gateway/pom.xml | 166 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 142 insertions(+), 24 deletions(-) diff --git a/cmci-pfcs-gateway/pom.xml b/cmci-pfcs-gateway/pom.xml index bceeca7..6f14d1c 100644 --- a/cmci-pfcs-gateway/pom.xml +++ b/cmci-pfcs-gateway/pom.xml @@ -2,11 +2,11 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>com.jttech.zxmx.plat</groupId> - <artifactId>zxmx-plat-gateway</artifactId> + <groupId>com.jttech.pfcs</groupId> + <artifactId>cmci-pfcs-gateway</artifactId> <version>0.0.1-SNAPSHOT</version> <name>cmci-pfcs-gateway</name> - <description>Jwssw Simple Service</description> + <description>cmci pufa Simple Service</description> <parent> <groupId>org.springframework.boot</groupId> @@ -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> @@ -64,24 +64,142 @@ </dependencies> <build> - <plugins> - <plugin> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-maven-plugin</artifactId> - </plugin> - </plugins> + <finalName>cmci-pfcs-gateway</finalName> <resources> <resource> - <directory>src/main/java</directory> - <includes> - <include>**/*.xml</include> - </includes> - </resource> - <resource> + <targetPath>${project.build.directory}/classes</targetPath> <directory>src/main/resources</directory> + <filtering>true</filtering> + <includes> + <include>**/*.*</include> + </includes> </resource> </resources> + <plugins> + <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <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> + + <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> </project> -- Gitblit v1.8.0