|
@@ -1,960 +0,0 @@
|
|
|
-生成console的lib包pom
|
|
|
-========================================================================================================================
|
|
|
-<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
-
|
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
- <repositories>
|
|
|
- <repository>
|
|
|
- <id>jiayue-repos</id>
|
|
|
- <name>jiayue maven</name>
|
|
|
- <url>http://49.4.68.219:8888/nexus/content/groups/public/</url>
|
|
|
- <releases>
|
|
|
- <enabled>true</enabled>
|
|
|
- </releases>
|
|
|
- <snapshots>
|
|
|
- <enabled>true</enabled>
|
|
|
- </snapshots>
|
|
|
- </repository>
|
|
|
- </repositories>
|
|
|
-
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-console</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
-
|
|
|
- <properties>
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
- <java.version>1.8</java.version>
|
|
|
- <ipfcst.version>3.0</ipfcst.version>
|
|
|
- <aviator.version>5.0.0</aviator.version>
|
|
|
- <fastjson.version>1.2.60</fastjson.version>
|
|
|
- <commons-dbcp2.version>2.5.0</commons-dbcp2.version>
|
|
|
- <jasypt-boot.version>2.1.1</jasypt-boot.version>
|
|
|
- <reflections.version>0.9.10</reflections.version>
|
|
|
- <commons.fileupload.version>1.3</commons.fileupload.version>
|
|
|
- <commons.net.version>3.3</commons.net.version>
|
|
|
- <velocity.version>1.7</velocity.version>
|
|
|
- <netty.version>4.1.6.Final</netty.version>
|
|
|
- <jodatime.version>2.9.9</jodatime.version>
|
|
|
- </properties>
|
|
|
-
|
|
|
- <dependencyManagement>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst</artifactId>
|
|
|
- <version>${ipfcst.version}</version>
|
|
|
- <type>pom</type>
|
|
|
- <scope>import</scope>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </dependencyManagement>
|
|
|
-
|
|
|
- <dependencies>
|
|
|
- <!--配置文件处理器-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
- <optional>true</optional>
|
|
|
- </dependency>
|
|
|
- <!--jasypt配置文件加解密-->
|
|
|
- <dependency>
|
|
|
- <groupId>com.github.ulisesbocchio</groupId>
|
|
|
- <artifactId>jasypt-spring-boot-starter</artifactId>
|
|
|
- <version>${jasypt-boot.version}</version>
|
|
|
- </dependency>
|
|
|
- <!--Lombok-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- <!--测试依赖-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-test</artifactId>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>cn.hutool</groupId>
|
|
|
- <artifactId>hutool-all</artifactId>
|
|
|
- <version>5.3.5</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework</groupId>
|
|
|
- <artifactId>spring-mock</artifactId>
|
|
|
- <version>2.0.8</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-data</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-security</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.commons</groupId>
|
|
|
- <artifactId>commons-dbcp2</artifactId>
|
|
|
- <version>${commons-dbcp2.version}</version>
|
|
|
- </dependency>
|
|
|
- <!-- https://mvnrepository.com/artifact/com.googlecode.aviator/aviator -->
|
|
|
- <dependency>
|
|
|
- <groupId>com.googlecode.aviator</groupId>
|
|
|
- <artifactId>aviator</artifactId>
|
|
|
- <version>${aviator.version}</version>
|
|
|
- </dependency>
|
|
|
- <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
|
|
- <dependency>
|
|
|
- <groupId>com.alibaba</groupId>
|
|
|
- <artifactId>fastjson</artifactId>
|
|
|
- <version>${fastjson.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.reflections</groupId>
|
|
|
- <artifactId>reflections</artifactId>
|
|
|
- <version>${reflections.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.commons</groupId>
|
|
|
- <artifactId>commons-lang3</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>net.sf.ehcache</groupId>
|
|
|
- <artifactId>ehcache</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>commons-fileupload</groupId>
|
|
|
- <artifactId>commons-fileupload</artifactId>
|
|
|
- <version>${commons.fileupload.version}</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.velocity</groupId>
|
|
|
- <artifactId>velocity</artifactId>
|
|
|
- <version>${velocity.version}</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>io.netty</groupId>
|
|
|
- <artifactId>netty-all</artifactId>
|
|
|
- <version>${netty.version}</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>joda-time</groupId>
|
|
|
- <artifactId>joda-time</artifactId>
|
|
|
- <version>${jodatime.version}</version>
|
|
|
- </dependency>
|
|
|
- <!--ftp上传下载依赖包-->
|
|
|
- <dependency>
|
|
|
- <groupId>commons-net</groupId>
|
|
|
- <artifactId>commons-net</artifactId>
|
|
|
- <version>${commons.net.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>net.sourceforge.jexcelapi</groupId>
|
|
|
- <artifactId>jxl</artifactId>
|
|
|
- <version>2.6.10</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!-- SSH安全连接所使用的类库 -->
|
|
|
- <dependency>
|
|
|
- <groupId>com.jcraft</groupId>
|
|
|
- <artifactId>jsch</artifactId>
|
|
|
- <version>0.1.55</version>
|
|
|
- <scope>compile</scope>
|
|
|
- <optional>true</optional>
|
|
|
- </dependency>
|
|
|
- <!--hutool的poi包 https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.poi</groupId>
|
|
|
- <artifactId>poi-ooxml</artifactId>
|
|
|
- <version>3.17</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!--
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.commons</groupId>
|
|
|
- <artifactId>commons-csv</artifactId>
|
|
|
- <version>1.7</version>
|
|
|
- </dependency>
|
|
|
- -->
|
|
|
-
|
|
|
- </dependencies>
|
|
|
-
|
|
|
- <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
|
|
|
- <profile>
|
|
|
- <id>window</id>
|
|
|
- <properties>
|
|
|
- <npm>npm.cmd</npm>
|
|
|
- </properties>
|
|
|
-
|
|
|
- <activation>
|
|
|
- <activeByDefault>true</activeByDefault>
|
|
|
- </activation>
|
|
|
-
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>linux</id>
|
|
|
- <properties>
|
|
|
- <npm>npm</npm>
|
|
|
- </properties>
|
|
|
- </profile>
|
|
|
- </profiles>
|
|
|
-
|
|
|
- <build>
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- <filtering>true</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.7.0</version>
|
|
|
- <configuration>
|
|
|
- <source>${java.version}</source>
|
|
|
- <target>${java.version}</target>
|
|
|
- <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
- <!--<compilerArgs>-->
|
|
|
- <!--<!– 过期的方法的警告–>-->
|
|
|
- <!--<arg>-Xlint:deprecation</arg>-->
|
|
|
- <!--</compilerArgs>-->
|
|
|
- <compilerArguments>
|
|
|
- <!-- 是否输出所有的编译信息(包括类的加载等)-->
|
|
|
- <!--<verbose />-->
|
|
|
- <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
|
|
|
- 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
|
|
|
- <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
|
|
|
- </compilerArguments>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--跳过test类-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <version>2.21.0</version>
|
|
|
- <configuration>
|
|
|
- <skipTests>true</skipTests>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-clean-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
- <configuration>
|
|
|
- <filesets>
|
|
|
- <fileset>
|
|
|
- <!-- 前端资源目录,即:存放前端包目录-->
|
|
|
- <directory>src/main/resources/static</directory>
|
|
|
- </fileset>
|
|
|
- <fileset>
|
|
|
- <!-- Vue项目打包自动生成的dist目录 -->
|
|
|
- <directory>${basedir}/dist</directory>
|
|
|
- </fileset>
|
|
|
- </filesets>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--拷贝依赖jar文件到lib目录下-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
- <version>2.10</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-dependencies</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <excludeArtifactIds>ipfcst-common-data,ipfcst-common-security,ipfcst-common-core</excludeArtifactIds>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/ipfcst-lib</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.6.0</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>exec-npm-install</id>
|
|
|
- <phase>validate</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>${npm}</executable>
|
|
|
- <arguments>
|
|
|
- <argument>install</argument>
|
|
|
- </arguments>
|
|
|
- <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>exec-npm-run-build</id>
|
|
|
- <phase>generate-resources</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>${npm}</executable>
|
|
|
- <arguments>
|
|
|
- <argument>run</argument>
|
|
|
- <argument>build:prod</argument>
|
|
|
- </arguments>
|
|
|
- <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>java</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <mainClass>com.jiayue.ipfcst.console.util.CreateConsoleSh</mainClass>
|
|
|
- <arguments>
|
|
|
- <argument>${project.version}</argument>
|
|
|
- </arguments>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-resources-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
- <configuration>
|
|
|
- <nonFilteredFileExtensions>
|
|
|
- <nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>swf</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>png</nonFilteredFileExtension>
|
|
|
- </nonFilteredFileExtensions>
|
|
|
- <includeEmptyDirs>true</includeEmptyDirs>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy config</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- <includes>
|
|
|
- <include>application.yml</include>
|
|
|
- <include>vms/**</include>
|
|
|
- </includes>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>copy static</id>
|
|
|
- <phase>generate-resources</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <!-- 复制前端打包文件到这里 -->
|
|
|
- <outputDirectory>src/main/resources/static</outputDirectory>
|
|
|
- <overwrite>true</overwrite>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
|
|
|
- <directory>${basedir}/dist</directory>
|
|
|
- <includes>
|
|
|
- <!-- 具体根据实际前端代码、及目录结构进行配置-->
|
|
|
- <include>assets/</include>
|
|
|
- <include>favicon.ico</include>
|
|
|
- <include>index.html</include>
|
|
|
- </includes>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>copy-start-console.sh</id>
|
|
|
- <!-- here the phase you need -->
|
|
|
- <phase>compile</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/bin</outputDirectory>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>target/classes</directory>
|
|
|
- <includes>
|
|
|
- <include>start-console.sh</include>
|
|
|
- </includes>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <version>2.6</version>
|
|
|
- <configuration>
|
|
|
- <!--不打入jar包的文件类型或者路径-->
|
|
|
- <excludes>
|
|
|
- <exclude>application.yml</exclude>
|
|
|
- <exclude>logback-console.xml</exclude>
|
|
|
- </excludes>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <addClasspath>true</addClasspath>
|
|
|
- <classpathPrefix>/home/syjy/ipfcstV3/ipfcst-lib/</classpathPrefix>
|
|
|
- <mainClass>com.jiayue.ipfcst.ConsoleApplication</mainClass>
|
|
|
- </manifest>
|
|
|
- <!-- 用maven在MANIFEST.MF资料中的Class-Path中增加当前目录(.) -->
|
|
|
- <manifestEntries>
|
|
|
- <Class-Path>/home/syjy/ipfcstV3/ipfcst-lib</Class-Path>
|
|
|
- </manifestEntries>
|
|
|
- </archive>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>2.1.7.RELEASE</version>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
|
|
|
- <includes>
|
|
|
- <include>
|
|
|
- <groupId>nothing</groupId>
|
|
|
- <artifactId>nothing</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-data</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-security</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-core</artifactId>
|
|
|
- </include>
|
|
|
- </includes>
|
|
|
- <!--控制是否启用支持Linux下service方式运行-->
|
|
|
- <executable>false</executable>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>build-info</goal>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <version>2.2.1</version>
|
|
|
- <configuration>
|
|
|
- <!-- 定义压缩包存放位置 -->
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
|
|
|
- <!-- 定义压缩包文件名 -->
|
|
|
- <finalName>${project.artifactId}-${project.version}</finalName>
|
|
|
- <appendAssemblyId>false</appendAssemblyId>
|
|
|
- <descriptors>
|
|
|
- <descriptor>src/main/resources/assembly_base.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- <!--上传配置 必须 -->
|
|
|
- <distributionManagement>
|
|
|
- <repository>
|
|
|
- <id>jiayue-releases</id>
|
|
|
- <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-releases</url>
|
|
|
- </repository>
|
|
|
- <snapshotRepository>
|
|
|
- <id>jiayue-snapshots</id>
|
|
|
- <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-snapshots</url>
|
|
|
- </snapshotRepository>
|
|
|
- </distributionManagement>
|
|
|
-</project>
|
|
|
-
|
|
|
-========================================================================================================================
|
|
|
-生成reportquery的lib包pom
|
|
|
-========================================================================================================================
|
|
|
-<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
-
|
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
-
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-reportquery</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
-
|
|
|
- <properties>
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
- <java.version>1.8</java.version>
|
|
|
- <ipfcst.version>3.0</ipfcst.version>
|
|
|
- <jasypt-boot.version>2.1.1</jasypt-boot.version>
|
|
|
- <commons.fileupload.version>1.3</commons.fileupload.version>
|
|
|
- <commons.net.version>3.3</commons.net.version>
|
|
|
- <velocity.version>1.7</velocity.version>
|
|
|
- <jodatime.version>2.9.9</jodatime.version>
|
|
|
- </properties>
|
|
|
-
|
|
|
- <dependencyManagement>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst</artifactId>
|
|
|
- <version>${ipfcst.version}</version>
|
|
|
- <type>pom</type>
|
|
|
- <scope>import</scope>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </dependencyManagement>
|
|
|
-
|
|
|
- <dependencies>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.poi</groupId>
|
|
|
- <artifactId>poi-ooxml</artifactId>
|
|
|
- <version>3.17</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
-
|
|
|
- <!--配置文件处理器-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
- <optional>true</optional>
|
|
|
- </dependency>
|
|
|
- <!--jasypt配置文件加解密-->
|
|
|
- <dependency>
|
|
|
- <groupId>com.github.ulisesbocchio</groupId>
|
|
|
- <artifactId>jasypt-spring-boot-starter</artifactId>
|
|
|
- <version>${jasypt-boot.version}</version>
|
|
|
- </dependency>
|
|
|
- <!--Lombok-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- <!--测试依赖-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-test</artifactId>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-data</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-security</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>net.sf.ehcache</groupId>
|
|
|
- <artifactId>ehcache</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>commons-fileupload</groupId>
|
|
|
- <artifactId>commons-fileupload</artifactId>
|
|
|
- <version>${commons.fileupload.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.velocity</groupId>
|
|
|
- <artifactId>velocity</artifactId>
|
|
|
- <version>${velocity.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>joda-time</groupId>
|
|
|
- <artifactId>joda-time</artifactId>
|
|
|
- <version>${jodatime.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!--ftp上传下载依赖包-->
|
|
|
- <dependency>
|
|
|
- <groupId>commons-net</groupId>
|
|
|
- <artifactId>commons-net</artifactId>
|
|
|
- <version>${commons.net.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>com.google.zxing</groupId>
|
|
|
- <artifactId>core</artifactId>
|
|
|
- <version>3.3.3</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- </dependencies>
|
|
|
-
|
|
|
- <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
|
|
|
- <profile>
|
|
|
- <id>window</id>
|
|
|
- <properties>
|
|
|
- <npm>npm.cmd</npm>
|
|
|
- </properties>
|
|
|
-
|
|
|
- <activation>
|
|
|
- <activeByDefault>true</activeByDefault>
|
|
|
- </activation>
|
|
|
-
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>linux</id>
|
|
|
- <properties>
|
|
|
- <npm>npm</npm>
|
|
|
- </properties>
|
|
|
- </profile>
|
|
|
- </profiles>
|
|
|
-
|
|
|
- <build>
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- <filtering>true</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.7.0</version>
|
|
|
- <configuration>
|
|
|
- <source>${java.version}</source>
|
|
|
- <target>${java.version}</target>
|
|
|
- <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
- <!--<compilerArgs>-->
|
|
|
- <!--<!– 过期的方法的警告–>-->
|
|
|
- <!--<arg>-Xlint:deprecation</arg>-->
|
|
|
- <!--</compilerArgs>-->
|
|
|
- <compilerArguments>
|
|
|
- <!-- 是否输出所有的编译信息(包括类的加载等)-->
|
|
|
- <!--<verbose />-->
|
|
|
- <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
|
|
|
- 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
|
|
|
- <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
|
|
|
- </compilerArguments>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--跳过test类-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <version>2.21.0</version>
|
|
|
- <configuration>
|
|
|
- <skipTests>true</skipTests>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-clean-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
- <configuration>
|
|
|
- <filesets>
|
|
|
- <fileset>
|
|
|
- <!-- 前端资源目录,即:存放前端包目录-->
|
|
|
- <directory>src/main/resources/static</directory>
|
|
|
- </fileset>
|
|
|
- <fileset>
|
|
|
- <!-- Vue项目打包自动生成的dist目录 -->
|
|
|
- <directory>${basedir}/dist</directory>
|
|
|
- </fileset>
|
|
|
- </filesets>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--拷贝依赖jar文件到lib目录下-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
- <version>2.10</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-dependencies</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <excludeArtifactIds>ipfcst-common-data,ipfcst-common-security,ipfcst-common-core</excludeArtifactIds>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/ipfcst-lib</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.6.0</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>exec-npm-install</id>
|
|
|
- <phase>validate</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>${npm}</executable>
|
|
|
- <arguments>
|
|
|
- <argument>install</argument>
|
|
|
- </arguments>
|
|
|
- <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>exec-npm-run-build</id>
|
|
|
- <phase>generate-resources</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>${npm}</executable>
|
|
|
- <arguments>
|
|
|
- <argument>run</argument>
|
|
|
- <argument>build:prod</argument>
|
|
|
- </arguments>
|
|
|
- <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>java</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <mainClass>com.jiayue.ipfcst.util.CreateReportquerySh</mainClass>
|
|
|
- <arguments>
|
|
|
- <argument>${project.version}</argument>
|
|
|
- </arguments>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-resources-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
- <configuration>
|
|
|
- <nonFilteredFileExtensions>
|
|
|
- <nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>swf</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>png</nonFilteredFileExtension>
|
|
|
- <nonFilteredFileExtension>mp3</nonFilteredFileExtension>
|
|
|
- </nonFilteredFileExtensions>
|
|
|
- <includeEmptyDirs>true</includeEmptyDirs>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy config</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- <includes>
|
|
|
- <include>application.yml</include>
|
|
|
- </includes>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>copy static</id>
|
|
|
- <phase>generate-resources</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <!-- 复制前端打包文件到这里 -->
|
|
|
- <outputDirectory>src/main/resources/static</outputDirectory>
|
|
|
- <overwrite>true</overwrite>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
|
|
|
- <directory>${basedir}/dist</directory>
|
|
|
- <includes>
|
|
|
- <!-- 具体根据实际前端代码、及目录结构进行配置-->
|
|
|
- <include>assets/</include>
|
|
|
- <include>favicon.ico</include>
|
|
|
- <include>index.html</include>
|
|
|
- <include>audio/</include>
|
|
|
- </includes>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <version>2.6</version>
|
|
|
- <configuration>
|
|
|
- <!--不打入jar包的文件类型或者路径-->
|
|
|
- <excludes>
|
|
|
- <exclude>application.yml</exclude>
|
|
|
- <exclude>logback-reportquery.xml</exclude>
|
|
|
- </excludes>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <addClasspath>true</addClasspath>
|
|
|
- <classpathPrefix>/home/syjy/ipfcstV3/ipfcst-lib/</classpathPrefix>
|
|
|
- <mainClass>com.jiayue.ipfcst.ReportQueryApplication</mainClass>
|
|
|
- </manifest>
|
|
|
- <!-- 用maven在MANIFEST.MF资料中的Class-Path中增加当前目录(.) -->
|
|
|
- <manifestEntries>
|
|
|
- <Class-Path>/home/syjy/ipfcstV3/ipfcst-lib</Class-Path>
|
|
|
- </manifestEntries>
|
|
|
- </archive>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>2.1.7.RELEASE</version>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
|
|
|
- <includes>
|
|
|
- <include>
|
|
|
- <groupId>nothing</groupId>
|
|
|
- <artifactId>nothing</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-data</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-security</artifactId>
|
|
|
- </include>
|
|
|
- <include>
|
|
|
- <groupId>com.jiayue</groupId>
|
|
|
- <artifactId>ipfcst-common-core</artifactId>
|
|
|
- </include>
|
|
|
- </includes>
|
|
|
- <!--控制是否启用支持Linux下service方式运行-->
|
|
|
- <executable>false</executable>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>build-info</goal>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <version>2.2.1</version>
|
|
|
- <configuration>
|
|
|
- <!-- 定义压缩包存放位置 -->
|
|
|
- <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
|
|
|
- <!-- 定义压缩包文件名 -->
|
|
|
- <finalName>${project.artifactId}-${project.version}</finalName>
|
|
|
- <appendAssemblyId>false</appendAssemblyId>
|
|
|
- <descriptors>
|
|
|
- <descriptor>src/main/resources/assembly_base.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- <!--上传配置 必须 -->
|
|
|
- <distributionManagement>
|
|
|
- <repository>
|
|
|
- <id>jiayue-releases</id>
|
|
|
- <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-releases</url>
|
|
|
- </repository>
|
|
|
- <snapshotRepository>
|
|
|
- <id>jiayue-snapshots</id>
|
|
|
- <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-snapshots</url>
|
|
|
- </snapshotRepository>
|
|
|
- </distributionManagement>
|
|
|
-</project>
|
|
|
-
|
|
|
-
|
|
|
-
|