<?xml version="1.0" encoding="UTF-8"?>
|
<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.pfcs</groupId>
|
<artifactId>cmci-pfcs-gateway</artifactId>
|
<version>0.0.1-SNAPSHOT</version>
|
<name>cmci-pfcs-gateway</name>
|
<description>cmci pufa Simple Service</description>
|
|
<parent>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
<version>2.3.1.RELEASE</version>
|
<relativePath/> <!-- lookup parent from repository -->
|
</parent>
|
|
<properties>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<java.version>1.8</java.version>
|
<skipTests>true</skipTests>
|
</properties>
|
|
<dependencies>
|
<!-- 节选 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
<exclusions>
|
<exclusion>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-logging</artifactId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-log4j2 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.jdom</groupId>
|
<artifactId>jdom</artifactId>
|
<version>2.0.2</version>
|
</dependency>
|
<dependency>
|
<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>
|
<artifactId>fastjson</artifactId>
|
<version>1.2.60</version>
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
<finalName>cmci-pfcs-gateway</finalName>
|
<resources>
|
<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>boot.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>
|