123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- <?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.ipfcst</groupId>
- <artifactId>ipfcst-reportquery</artifactId>
- <!--改版本号时注意第2位的大小包:0大包 1小包 3辽宁龙阜定制版(从3.1.276.m分支出来)lf龙阜-->
- <version>3.3.1.znzx</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>
- <dependencies>
- <dependency>
- <groupId>com.jiayue.ipfcst</groupId>
- <artifactId>ipfcst-common-data</artifactId>
- <version>3.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.jiayue.ipfcst</groupId>
- <artifactId>ipfcst-common-security</artifactId>
- <version>3.0.0</version>
- </dependency>
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>5.3.5</version>
- </dependency>
- <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>
- <exclusions>
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-to-slf4j</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-to-slf4j</artifactId>
- <version>2.12.4</version>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-api</artifactId>
- <version>2.12.4</version>
- </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>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.jiayue.ipfcst</groupId>
- <artifactId>ipfcst</artifactId>
- <version>3.0.0</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <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>
- <excludes>
- <exclude>*.keystore</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>false</filtering>
- <includes>
- <include>*.keystore</include>
- </includes>
- </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文件到ipfcst-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,protocol-iec104,protocol-modbus,protocol-cdt,protocol-core,protocol-all
- </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.ipfcst</groupId>
- <artifactId>ipfcst-common-data</artifactId>
- </include>
- <include>
- <groupId>com.jiayue.ipfcst</groupId>
- <artifactId>ipfcst-common-security</artifactId>
- </include>
- <include>
- <groupId>com.jiayue.ipfcst</groupId>
- <artifactId>ipfcst-common-core</artifactId>
- </include>
- <include>
- <groupId>wei.yigulu</groupId>
- <artifactId>protocol-iec104</artifactId>
- </include>
- <include>
- <groupId>wei.yigulu</groupId>
- <artifactId>protocol-modbus</artifactId>
- </include>
- <include>
- <groupId>wei.yigulu</groupId>
- <artifactId>protocol-cdt</artifactId>
- </include>
- <include>
- <groupId>wei.yigulu</groupId>
- <artifactId>protocol-core</artifactId>
- </include>
- <include>
- <groupId>wei.yigulu</groupId>
- <artifactId>protocol-all</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>
- </project>
|