系统生产运行包 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960
  1. 生成console的lib包pom
  2. ========================================================================================================================
  3. <?xml version="1.0" encoding="UTF-8" ?>
  4. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <repositories>
  8. <repository>
  9. <id>jiayue-repos</id>
  10. <name>jiayue maven</name>
  11. <url>http://49.4.68.219:8888/nexus/content/groups/public/</url>
  12. <releases>
  13. <enabled>true</enabled>
  14. </releases>
  15. <snapshots>
  16. <enabled>true</enabled>
  17. </snapshots>
  18. </repository>
  19. </repositories>
  20. <groupId>com.jiayue</groupId>
  21. <artifactId>ipfcst-console</artifactId>
  22. <version>3.1.0</version>
  23. <properties>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <java.version>1.8</java.version>
  26. <ipfcst.version>3.0</ipfcst.version>
  27. <aviator.version>5.0.0</aviator.version>
  28. <fastjson.version>1.2.60</fastjson.version>
  29. <commons-dbcp2.version>2.5.0</commons-dbcp2.version>
  30. <jasypt-boot.version>2.1.1</jasypt-boot.version>
  31. <reflections.version>0.9.10</reflections.version>
  32. <commons.fileupload.version>1.3</commons.fileupload.version>
  33. <commons.net.version>3.3</commons.net.version>
  34. <velocity.version>1.7</velocity.version>
  35. <netty.version>4.1.6.Final</netty.version>
  36. <jodatime.version>2.9.9</jodatime.version>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <dependency>
  41. <groupId>com.jiayue</groupId>
  42. <artifactId>ipfcst</artifactId>
  43. <version>${ipfcst.version}</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. </dependencies>
  48. </dependencyManagement>
  49. <dependencies>
  50. <!--配置文件处理器-->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-configuration-processor</artifactId>
  54. <optional>true</optional>
  55. </dependency>
  56. <!--jasypt配置文件加解密-->
  57. <dependency>
  58. <groupId>com.github.ulisesbocchio</groupId>
  59. <artifactId>jasypt-spring-boot-starter</artifactId>
  60. <version>${jasypt-boot.version}</version>
  61. </dependency>
  62. <!--Lombok-->
  63. <dependency>
  64. <groupId>org.projectlombok</groupId>
  65. <artifactId>lombok</artifactId>
  66. <scope>provided</scope>
  67. </dependency>
  68. <!--测试依赖-->
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-test</artifactId>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>cn.hutool</groupId>
  76. <artifactId>hutool-all</artifactId>
  77. <version>5.3.5</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework</groupId>
  81. <artifactId>spring-mock</artifactId>
  82. <version>2.0.8</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.jiayue</groupId>
  86. <artifactId>ipfcst-common-data</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.jiayue</groupId>
  90. <artifactId>ipfcst-common-security</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.commons</groupId>
  94. <artifactId>commons-dbcp2</artifactId>
  95. <version>${commons-dbcp2.version}</version>
  96. </dependency>
  97. <!-- https://mvnrepository.com/artifact/com.googlecode.aviator/aviator -->
  98. <dependency>
  99. <groupId>com.googlecode.aviator</groupId>
  100. <artifactId>aviator</artifactId>
  101. <version>${aviator.version}</version>
  102. </dependency>
  103. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  104. <dependency>
  105. <groupId>com.alibaba</groupId>
  106. <artifactId>fastjson</artifactId>
  107. <version>${fastjson.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.reflections</groupId>
  111. <artifactId>reflections</artifactId>
  112. <version>${reflections.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.commons</groupId>
  116. <artifactId>commons-lang3</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>net.sf.ehcache</groupId>
  120. <artifactId>ehcache</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-starter-web</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-websocket</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-undertow</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>commons-fileupload</groupId>
  136. <artifactId>commons-fileupload</artifactId>
  137. <version>${commons.fileupload.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.velocity</groupId>
  141. <artifactId>velocity</artifactId>
  142. <version>${velocity.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>io.netty</groupId>
  146. <artifactId>netty-all</artifactId>
  147. <version>${netty.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>joda-time</groupId>
  151. <artifactId>joda-time</artifactId>
  152. <version>${jodatime.version}</version>
  153. </dependency>
  154. <!--ftp上传下载依赖包-->
  155. <dependency>
  156. <groupId>commons-net</groupId>
  157. <artifactId>commons-net</artifactId>
  158. <version>${commons.net.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-aop</artifactId>
  163. </dependency>
  164. <dependency>
  165. <groupId>net.sourceforge.jexcelapi</groupId>
  166. <artifactId>jxl</artifactId>
  167. <version>2.6.10</version>
  168. </dependency>
  169. <!-- SSH安全连接所使用的类库 -->
  170. <dependency>
  171. <groupId>com.jcraft</groupId>
  172. <artifactId>jsch</artifactId>
  173. <version>0.1.55</version>
  174. <scope>compile</scope>
  175. <optional>true</optional>
  176. </dependency>
  177. <!--hutool的poi包 https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  178. <dependency>
  179. <groupId>org.apache.poi</groupId>
  180. <artifactId>poi-ooxml</artifactId>
  181. <version>3.17</version>
  182. </dependency>
  183. <!--
  184. <dependency>
  185. <groupId>org.apache.commons</groupId>
  186. <artifactId>commons-csv</artifactId>
  187. <version>1.7</version>
  188. </dependency>
  189. -->
  190. </dependencies>
  191. <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
  192. <profile>
  193. <id>window</id>
  194. <properties>
  195. <npm>npm.cmd</npm>
  196. </properties>
  197. <activation>
  198. <activeByDefault>true</activeByDefault>
  199. </activation>
  200. </profile>
  201. <profile>
  202. <id>linux</id>
  203. <properties>
  204. <npm>npm</npm>
  205. </properties>
  206. </profile>
  207. </profiles>
  208. <build>
  209. <finalName>${project.artifactId}</finalName>
  210. <resources>
  211. <resource>
  212. <directory>src/main/resources</directory>
  213. <filtering>true</filtering>
  214. </resource>
  215. </resources>
  216. <plugins>
  217. <plugin>
  218. <artifactId>maven-compiler-plugin</artifactId>
  219. <version>3.7.0</version>
  220. <configuration>
  221. <source>${java.version}</source>
  222. <target>${java.version}</target>
  223. <encoding>${project.build.sourceEncoding}</encoding>
  224. <!--<compilerArgs>-->
  225. <!--&lt;!&ndash; 过期的方法的警告&ndash;&gt;-->
  226. <!--<arg>-Xlint:deprecation</arg>-->
  227. <!--</compilerArgs>-->
  228. <compilerArguments>
  229. <!-- 是否输出所有的编译信息(包括类的加载等)-->
  230. <!--<verbose />-->
  231. <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
  232. 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
  233. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
  234. </compilerArguments>
  235. </configuration>
  236. </plugin>
  237. <!--跳过test类-->
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-surefire-plugin</artifactId>
  241. <version>2.21.0</version>
  242. <configuration>
  243. <skipTests>true</skipTests>
  244. </configuration>
  245. </plugin>
  246. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-clean-plugin</artifactId>
  250. <version>3.1.0</version>
  251. <configuration>
  252. <filesets>
  253. <fileset>
  254. <!-- 前端资源目录,即:存放前端包目录-->
  255. <directory>src/main/resources/static</directory>
  256. </fileset>
  257. <fileset>
  258. <!-- Vue项目打包自动生成的dist目录 -->
  259. <directory>${basedir}/dist</directory>
  260. </fileset>
  261. </filesets>
  262. </configuration>
  263. </plugin>
  264. <!--拷贝依赖jar文件到lib目录下-->
  265. <plugin>
  266. <groupId>org.apache.maven.plugins</groupId>
  267. <artifactId>maven-dependency-plugin</artifactId>
  268. <version>2.10</version>
  269. <executions>
  270. <execution>
  271. <id>copy-dependencies</id>
  272. <phase>package</phase>
  273. <goals>
  274. <goal>copy-dependencies</goal>
  275. </goals>
  276. <configuration>
  277. <excludeArtifactIds>ipfcst-common-data,ipfcst-common-security,ipfcst-common-core</excludeArtifactIds>
  278. <outputDirectory>../syjy/ipfcstV3/ipfcst-lib</outputDirectory>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. <plugin>
  284. <groupId>org.codehaus.mojo</groupId>
  285. <artifactId>exec-maven-plugin</artifactId>
  286. <version>1.6.0</version>
  287. <executions>
  288. <execution>
  289. <id>exec-npm-install</id>
  290. <phase>validate</phase>
  291. <goals>
  292. <goal>exec</goal>
  293. </goals>
  294. <configuration>
  295. <executable>${npm}</executable>
  296. <arguments>
  297. <argument>install</argument>
  298. </arguments>
  299. <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
  300. </configuration>
  301. </execution>
  302. <execution>
  303. <id>exec-npm-run-build</id>
  304. <phase>generate-resources</phase>
  305. <goals>
  306. <goal>exec</goal>
  307. </goals>
  308. <configuration>
  309. <executable>${npm}</executable>
  310. <arguments>
  311. <argument>run</argument>
  312. <argument>build:prod</argument>
  313. </arguments>
  314. <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
  315. </configuration>
  316. </execution>
  317. <execution>
  318. <phase>package</phase>
  319. <goals>
  320. <goal>java</goal>
  321. </goals>
  322. <configuration>
  323. <mainClass>com.jiayue.ipfcst.console.util.CreateConsoleSh</mainClass>
  324. <arguments>
  325. <argument>${project.version}</argument>
  326. </arguments>
  327. </configuration>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-resources-plugin</artifactId>
  334. <version>3.1.0</version>
  335. <configuration>
  336. <nonFilteredFileExtensions>
  337. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  338. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  339. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  340. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  341. <nonFilteredFileExtension>swf</nonFilteredFileExtension>
  342. <nonFilteredFileExtension>ico</nonFilteredFileExtension>
  343. <nonFilteredFileExtension>png</nonFilteredFileExtension>
  344. </nonFilteredFileExtensions>
  345. <includeEmptyDirs>true</includeEmptyDirs>
  346. </configuration>
  347. <executions>
  348. <execution>
  349. <id>copy config</id>
  350. <phase>package</phase>
  351. <goals>
  352. <goal>copy-resources</goal>
  353. </goals>
  354. <configuration>
  355. <resources>
  356. <resource>
  357. <directory>src/main/resources</directory>
  358. <includes>
  359. <include>application.yml</include>
  360. <include>vms/**</include>
  361. </includes>
  362. </resource>
  363. </resources>
  364. <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
  365. </configuration>
  366. </execution>
  367. <execution>
  368. <id>copy static</id>
  369. <phase>generate-resources</phase>
  370. <goals>
  371. <goal>copy-resources</goal>
  372. </goals>
  373. <configuration>
  374. <!-- 复制前端打包文件到这里 -->
  375. <outputDirectory>src/main/resources/static</outputDirectory>
  376. <overwrite>true</overwrite>
  377. <resources>
  378. <resource>
  379. <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
  380. <directory>${basedir}/dist</directory>
  381. <includes>
  382. <!-- 具体根据实际前端代码、及目录结构进行配置-->
  383. <include>assets/</include>
  384. <include>favicon.ico</include>
  385. <include>index.html</include>
  386. </includes>
  387. </resource>
  388. </resources>
  389. </configuration>
  390. </execution>
  391. <execution>
  392. <id>copy-start-console.sh</id>
  393. <!-- here the phase you need -->
  394. <phase>compile</phase>
  395. <goals>
  396. <goal>copy-resources</goal>
  397. </goals>
  398. <configuration>
  399. <outputDirectory>../syjy/ipfcstV3/bin</outputDirectory>
  400. <resources>
  401. <resource>
  402. <directory>target/classes</directory>
  403. <includes>
  404. <include>start-console.sh</include>
  405. </includes>
  406. </resource>
  407. </resources>
  408. </configuration>
  409. </execution>
  410. </executions>
  411. </plugin>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-jar-plugin</artifactId>
  415. <version>2.6</version>
  416. <configuration>
  417. <!--不打入jar包的文件类型或者路径-->
  418. <excludes>
  419. <exclude>application.yml</exclude>
  420. <exclude>logback-console.xml</exclude>
  421. </excludes>
  422. <archive>
  423. <manifest>
  424. <addClasspath>true</addClasspath>
  425. <classpathPrefix>/home/syjy/ipfcstV3/ipfcst-lib/</classpathPrefix>
  426. <mainClass>com.jiayue.ipfcst.ConsoleApplication</mainClass>
  427. </manifest>
  428. <!-- 用maven在MANIFEST.MF资料中的Class-Path中增加当前目录(.) -->
  429. <manifestEntries>
  430. <Class-Path>/home/syjy/ipfcstV3/ipfcst-lib</Class-Path>
  431. </manifestEntries>
  432. </archive>
  433. </configuration>
  434. </plugin>
  435. <plugin>
  436. <groupId>org.springframework.boot</groupId>
  437. <artifactId>spring-boot-maven-plugin</artifactId>
  438. <version>2.1.7.RELEASE</version>
  439. <configuration>
  440. <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
  441. <includes>
  442. <include>
  443. <groupId>nothing</groupId>
  444. <artifactId>nothing</artifactId>
  445. </include>
  446. <include>
  447. <groupId>com.jiayue</groupId>
  448. <artifactId>ipfcst-common-data</artifactId>
  449. </include>
  450. <include>
  451. <groupId>com.jiayue</groupId>
  452. <artifactId>ipfcst-common-security</artifactId>
  453. </include>
  454. <include>
  455. <groupId>com.jiayue</groupId>
  456. <artifactId>ipfcst-common-core</artifactId>
  457. </include>
  458. </includes>
  459. <!--控制是否启用支持Linux下service方式运行-->
  460. <executable>false</executable>
  461. </configuration>
  462. <executions>
  463. <execution>
  464. <goals>
  465. <goal>build-info</goal>
  466. <goal>repackage</goal>
  467. </goals>
  468. </execution>
  469. </executions>
  470. </plugin>
  471. <plugin>
  472. <artifactId>maven-assembly-plugin</artifactId>
  473. <version>2.2.1</version>
  474. <configuration>
  475. <!-- 定义压缩包存放位置 -->
  476. <outputDirectory>../syjy/ipfcstV3/produce/console/${project.version}</outputDirectory>
  477. <!-- 定义压缩包文件名 -->
  478. <finalName>${project.artifactId}-${project.version}</finalName>
  479. <appendAssemblyId>false</appendAssemblyId>
  480. <descriptors>
  481. <descriptor>src/main/resources/assembly_base.xml</descriptor>
  482. </descriptors>
  483. </configuration>
  484. <executions>
  485. <execution>
  486. <id>make-assembly</id>
  487. <phase>package</phase>
  488. <goals>
  489. <goal>single</goal>
  490. </goals>
  491. </execution>
  492. </executions>
  493. </plugin>
  494. </plugins>
  495. </build>
  496. <!--上传配置 必须 -->
  497. <distributionManagement>
  498. <repository>
  499. <id>jiayue-releases</id>
  500. <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-releases</url>
  501. </repository>
  502. <snapshotRepository>
  503. <id>jiayue-snapshots</id>
  504. <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-snapshots</url>
  505. </snapshotRepository>
  506. </distributionManagement>
  507. </project>
  508. ========================================================================================================================
  509. 生成reportquery的lib包pom
  510. ========================================================================================================================
  511. <?xml version="1.0" encoding="UTF-8"?>
  512. <project xmlns="http://maven.apache.org/POM/4.0.0"
  513. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  514. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  515. <modelVersion>4.0.0</modelVersion>
  516. <groupId>com.jiayue</groupId>
  517. <artifactId>ipfcst-reportquery</artifactId>
  518. <version>3.1.0</version>
  519. <properties>
  520. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  521. <java.version>1.8</java.version>
  522. <ipfcst.version>3.0</ipfcst.version>
  523. <jasypt-boot.version>2.1.1</jasypt-boot.version>
  524. <commons.fileupload.version>1.3</commons.fileupload.version>
  525. <commons.net.version>3.3</commons.net.version>
  526. <velocity.version>1.7</velocity.version>
  527. <jodatime.version>2.9.9</jodatime.version>
  528. </properties>
  529. <dependencyManagement>
  530. <dependencies>
  531. <dependency>
  532. <groupId>com.jiayue</groupId>
  533. <artifactId>ipfcst</artifactId>
  534. <version>${ipfcst.version}</version>
  535. <type>pom</type>
  536. <scope>import</scope>
  537. </dependency>
  538. </dependencies>
  539. </dependencyManagement>
  540. <dependencies>
  541. <dependency>
  542. <groupId>org.apache.poi</groupId>
  543. <artifactId>poi-ooxml</artifactId>
  544. <version>3.17</version>
  545. </dependency>
  546. <!--配置文件处理器-->
  547. <dependency>
  548. <groupId>org.springframework.boot</groupId>
  549. <artifactId>spring-boot-configuration-processor</artifactId>
  550. <optional>true</optional>
  551. </dependency>
  552. <!--jasypt配置文件加解密-->
  553. <dependency>
  554. <groupId>com.github.ulisesbocchio</groupId>
  555. <artifactId>jasypt-spring-boot-starter</artifactId>
  556. <version>${jasypt-boot.version}</version>
  557. </dependency>
  558. <!--Lombok-->
  559. <dependency>
  560. <groupId>org.projectlombok</groupId>
  561. <artifactId>lombok</artifactId>
  562. <scope>provided</scope>
  563. </dependency>
  564. <!--测试依赖-->
  565. <dependency>
  566. <groupId>org.springframework.boot</groupId>
  567. <artifactId>spring-boot-starter-test</artifactId>
  568. <scope>test</scope>
  569. </dependency>
  570. <dependency>
  571. <groupId>com.jiayue</groupId>
  572. <artifactId>ipfcst-common-data</artifactId>
  573. </dependency>
  574. <dependency>
  575. <groupId>com.jiayue</groupId>
  576. <artifactId>ipfcst-common-security</artifactId>
  577. </dependency>
  578. <dependency>
  579. <groupId>net.sf.ehcache</groupId>
  580. <artifactId>ehcache</artifactId>
  581. </dependency>
  582. <dependency>
  583. <groupId>org.springframework.boot</groupId>
  584. <artifactId>spring-boot-starter-web</artifactId>
  585. </dependency>
  586. <dependency>
  587. <groupId>org.springframework.boot</groupId>
  588. <artifactId>spring-boot-starter-undertow</artifactId>
  589. </dependency>
  590. <dependency>
  591. <groupId>commons-fileupload</groupId>
  592. <artifactId>commons-fileupload</artifactId>
  593. <version>${commons.fileupload.version}</version>
  594. </dependency>
  595. <dependency>
  596. <groupId>org.apache.velocity</groupId>
  597. <artifactId>velocity</artifactId>
  598. <version>${velocity.version}</version>
  599. </dependency>
  600. <dependency>
  601. <groupId>joda-time</groupId>
  602. <artifactId>joda-time</artifactId>
  603. <version>${jodatime.version}</version>
  604. </dependency>
  605. <!--ftp上传下载依赖包-->
  606. <dependency>
  607. <groupId>commons-net</groupId>
  608. <artifactId>commons-net</artifactId>
  609. <version>${commons.net.version}</version>
  610. </dependency>
  611. <dependency>
  612. <groupId>com.google.zxing</groupId>
  613. <artifactId>core</artifactId>
  614. <version>3.3.3</version>
  615. </dependency>
  616. </dependencies>
  617. <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
  618. <profile>
  619. <id>window</id>
  620. <properties>
  621. <npm>npm.cmd</npm>
  622. </properties>
  623. <activation>
  624. <activeByDefault>true</activeByDefault>
  625. </activation>
  626. </profile>
  627. <profile>
  628. <id>linux</id>
  629. <properties>
  630. <npm>npm</npm>
  631. </properties>
  632. </profile>
  633. </profiles>
  634. <build>
  635. <finalName>${project.artifactId}</finalName>
  636. <resources>
  637. <resource>
  638. <directory>src/main/resources</directory>
  639. <filtering>true</filtering>
  640. </resource>
  641. </resources>
  642. <plugins>
  643. <plugin>
  644. <artifactId>maven-compiler-plugin</artifactId>
  645. <version>3.7.0</version>
  646. <configuration>
  647. <source>${java.version}</source>
  648. <target>${java.version}</target>
  649. <encoding>${project.build.sourceEncoding}</encoding>
  650. <!--<compilerArgs>-->
  651. <!--&lt;!&ndash; 过期的方法的警告&ndash;&gt;-->
  652. <!--<arg>-Xlint:deprecation</arg>-->
  653. <!--</compilerArgs>-->
  654. <compilerArguments>
  655. <!-- 是否输出所有的编译信息(包括类的加载等)-->
  656. <!--<verbose />-->
  657. <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
  658. 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
  659. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
  660. </compilerArguments>
  661. </configuration>
  662. </plugin>
  663. <!--跳过test类-->
  664. <plugin>
  665. <groupId>org.apache.maven.plugins</groupId>
  666. <artifactId>maven-surefire-plugin</artifactId>
  667. <version>2.21.0</version>
  668. <configuration>
  669. <skipTests>true</skipTests>
  670. </configuration>
  671. </plugin>
  672. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  673. <plugin>
  674. <groupId>org.apache.maven.plugins</groupId>
  675. <artifactId>maven-clean-plugin</artifactId>
  676. <version>3.1.0</version>
  677. <configuration>
  678. <filesets>
  679. <fileset>
  680. <!-- 前端资源目录,即:存放前端包目录-->
  681. <directory>src/main/resources/static</directory>
  682. </fileset>
  683. <fileset>
  684. <!-- Vue项目打包自动生成的dist目录 -->
  685. <directory>${basedir}/dist</directory>
  686. </fileset>
  687. </filesets>
  688. </configuration>
  689. </plugin>
  690. <!--拷贝依赖jar文件到lib目录下-->
  691. <plugin>
  692. <groupId>org.apache.maven.plugins</groupId>
  693. <artifactId>maven-dependency-plugin</artifactId>
  694. <version>2.10</version>
  695. <executions>
  696. <execution>
  697. <id>copy-dependencies</id>
  698. <phase>package</phase>
  699. <goals>
  700. <goal>copy-dependencies</goal>
  701. </goals>
  702. <configuration>
  703. <excludeArtifactIds>ipfcst-common-data,ipfcst-common-security,ipfcst-common-core</excludeArtifactIds>
  704. <outputDirectory>../syjy/ipfcstV3/ipfcst-lib</outputDirectory>
  705. </configuration>
  706. </execution>
  707. </executions>
  708. </plugin>
  709. <plugin>
  710. <groupId>org.codehaus.mojo</groupId>
  711. <artifactId>exec-maven-plugin</artifactId>
  712. <version>1.6.0</version>
  713. <executions>
  714. <execution>
  715. <id>exec-npm-install</id>
  716. <phase>validate</phase>
  717. <goals>
  718. <goal>exec</goal>
  719. </goals>
  720. <configuration>
  721. <executable>${npm}</executable>
  722. <arguments>
  723. <argument>install</argument>
  724. </arguments>
  725. <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
  726. </configuration>
  727. </execution>
  728. <execution>
  729. <id>exec-npm-run-build</id>
  730. <phase>generate-resources</phase>
  731. <goals>
  732. <goal>exec</goal>
  733. </goals>
  734. <configuration>
  735. <executable>${npm}</executable>
  736. <arguments>
  737. <argument>run</argument>
  738. <argument>build:prod</argument>
  739. </arguments>
  740. <workingDirectory>${basedir}/src/main/frontend</workingDirectory>
  741. </configuration>
  742. </execution>
  743. <execution>
  744. <phase>package</phase>
  745. <goals>
  746. <goal>java</goal>
  747. </goals>
  748. <configuration>
  749. <mainClass>com.jiayue.ipfcst.util.CreateReportquerySh</mainClass>
  750. <arguments>
  751. <argument>${project.version}</argument>
  752. </arguments>
  753. </configuration>
  754. </execution>
  755. </executions>
  756. </plugin>
  757. <plugin>
  758. <groupId>org.apache.maven.plugins</groupId>
  759. <artifactId>maven-resources-plugin</artifactId>
  760. <version>3.1.0</version>
  761. <configuration>
  762. <nonFilteredFileExtensions>
  763. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  764. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  765. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  766. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  767. <nonFilteredFileExtension>swf</nonFilteredFileExtension>
  768. <nonFilteredFileExtension>ico</nonFilteredFileExtension>
  769. <nonFilteredFileExtension>png</nonFilteredFileExtension>
  770. <nonFilteredFileExtension>mp3</nonFilteredFileExtension>
  771. </nonFilteredFileExtensions>
  772. <includeEmptyDirs>true</includeEmptyDirs>
  773. </configuration>
  774. <executions>
  775. <execution>
  776. <id>copy config</id>
  777. <phase>package</phase>
  778. <goals>
  779. <goal>copy-resources</goal>
  780. </goals>
  781. <configuration>
  782. <resources>
  783. <resource>
  784. <directory>src/main/resources</directory>
  785. <includes>
  786. <include>application.yml</include>
  787. </includes>
  788. </resource>
  789. </resources>
  790. <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
  791. </configuration>
  792. </execution>
  793. <execution>
  794. <id>copy static</id>
  795. <phase>generate-resources</phase>
  796. <goals>
  797. <goal>copy-resources</goal>
  798. </goals>
  799. <configuration>
  800. <!-- 复制前端打包文件到这里 -->
  801. <outputDirectory>src/main/resources/static</outputDirectory>
  802. <overwrite>true</overwrite>
  803. <resources>
  804. <resource>
  805. <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
  806. <directory>${basedir}/dist</directory>
  807. <includes>
  808. <!-- 具体根据实际前端代码、及目录结构进行配置-->
  809. <include>assets/</include>
  810. <include>favicon.ico</include>
  811. <include>index.html</include>
  812. <include>audio/</include>
  813. </includes>
  814. </resource>
  815. </resources>
  816. </configuration>
  817. </execution>
  818. </executions>
  819. </plugin>
  820. <plugin>
  821. <groupId>org.apache.maven.plugins</groupId>
  822. <artifactId>maven-jar-plugin</artifactId>
  823. <version>2.6</version>
  824. <configuration>
  825. <!--不打入jar包的文件类型或者路径-->
  826. <excludes>
  827. <exclude>application.yml</exclude>
  828. <exclude>logback-reportquery.xml</exclude>
  829. </excludes>
  830. <archive>
  831. <manifest>
  832. <addClasspath>true</addClasspath>
  833. <classpathPrefix>/home/syjy/ipfcstV3/ipfcst-lib/</classpathPrefix>
  834. <mainClass>com.jiayue.ipfcst.ReportQueryApplication</mainClass>
  835. </manifest>
  836. <!-- 用maven在MANIFEST.MF资料中的Class-Path中增加当前目录(.) -->
  837. <manifestEntries>
  838. <Class-Path>/home/syjy/ipfcstV3/ipfcst-lib</Class-Path>
  839. </manifestEntries>
  840. </archive>
  841. </configuration>
  842. </plugin>
  843. <plugin>
  844. <groupId>org.springframework.boot</groupId>
  845. <artifactId>spring-boot-maven-plugin</artifactId>
  846. <version>2.1.7.RELEASE</version>
  847. <configuration>
  848. <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
  849. <includes>
  850. <include>
  851. <groupId>nothing</groupId>
  852. <artifactId>nothing</artifactId>
  853. </include>
  854. <include>
  855. <groupId>com.jiayue</groupId>
  856. <artifactId>ipfcst-common-data</artifactId>
  857. </include>
  858. <include>
  859. <groupId>com.jiayue</groupId>
  860. <artifactId>ipfcst-common-security</artifactId>
  861. </include>
  862. <include>
  863. <groupId>com.jiayue</groupId>
  864. <artifactId>ipfcst-common-core</artifactId>
  865. </include>
  866. </includes>
  867. <!--控制是否启用支持Linux下service方式运行-->
  868. <executable>false</executable>
  869. </configuration>
  870. <executions>
  871. <execution>
  872. <goals>
  873. <goal>build-info</goal>
  874. <goal>repackage</goal>
  875. </goals>
  876. </execution>
  877. </executions>
  878. </plugin>
  879. <plugin>
  880. <artifactId>maven-assembly-plugin</artifactId>
  881. <version>2.2.1</version>
  882. <configuration>
  883. <!-- 定义压缩包存放位置 -->
  884. <outputDirectory>../syjy/ipfcstV3/produce/reportquery/${project.version}</outputDirectory>
  885. <!-- 定义压缩包文件名 -->
  886. <finalName>${project.artifactId}-${project.version}</finalName>
  887. <appendAssemblyId>false</appendAssemblyId>
  888. <descriptors>
  889. <descriptor>src/main/resources/assembly_base.xml</descriptor>
  890. </descriptors>
  891. </configuration>
  892. <executions>
  893. <execution>
  894. <id>make-assembly</id>
  895. <phase>package</phase>
  896. <goals>
  897. <goal>single</goal>
  898. </goals>
  899. </execution>
  900. </executions>
  901. </plugin>
  902. </plugins>
  903. </build>
  904. <!--上传配置 必须 -->
  905. <distributionManagement>
  906. <repository>
  907. <id>jiayue-releases</id>
  908. <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-releases</url>
  909. </repository>
  910. <snapshotRepository>
  911. <id>jiayue-snapshots</id>
  912. <url>http://49.4.68.219:8888/nexus/content/repositories/jiayue-snapshots</url>
  913. </snapshotRepository>
  914. </distributionManagement>
  915. </project>