pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <repositories>
  6. <repository>
  7. <id>jiayue-group</id>
  8. <name>jiayue maven</name>
  9. <url>http://49.4.68.219:8888/repository/jiayue-group/</url>
  10. <releases>
  11. <enabled>true</enabled>
  12. </releases>
  13. <snapshots>
  14. <enabled>true</enabled>
  15. </snapshots>
  16. </repository>
  17. </repositories>
  18. <groupId>com.jiayue.ipfcst</groupId>
  19. <artifactId>ipfcst-upload</artifactId>
  20. <version>3.3.0</version>
  21. <properties>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <java.version>1.8</java.version>
  24. <ipfcst.version>3.0</ipfcst.version>
  25. <aviator.version>5.0.0</aviator.version>
  26. <fastjson.version>1.2.60</fastjson.version>
  27. <commons-dbcp2.version>2.5.0</commons-dbcp2.version>
  28. <jasypt-boot.version>2.1.1</jasypt-boot.version>
  29. <reflections.version>0.9.10</reflections.version>
  30. <rxtx.version>18.12.07</rxtx.version>
  31. <modbus4j.version>3.0.5</modbus4j.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.22.Final</netty.version>
  36. <jodatime.version>2.9.9</jodatime.version>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <dependency>
  41. <groupId>com.jiayue.ipfcst</groupId>
  42. <artifactId>ipfcst</artifactId>
  43. <version>3.0.0</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. </dependencies>
  48. </dependencyManagement>
  49. <dependencies>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-actuator</artifactId>
  53. </dependency>
  54. <!--配置文件处理器-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-configuration-processor</artifactId>
  58. <optional>true</optional>
  59. </dependency>
  60. <!--jasypt配置文件加解密-->
  61. <dependency>
  62. <groupId>com.github.ulisesbocchio</groupId>
  63. <artifactId>jasypt-spring-boot-starter</artifactId>
  64. <version>${jasypt-boot.version}</version>
  65. </dependency>
  66. <!--Lombok-->
  67. <dependency>
  68. <groupId>org.projectlombok</groupId>
  69. <artifactId>lombok</artifactId>
  70. <scope>provided</scope>
  71. </dependency>
  72. <!--测试依赖-->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-test</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>cn.hutool</groupId>
  80. <artifactId>hutool-all</artifactId>
  81. <version>5.3.5</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-mock</artifactId>
  86. <version>2.0.8</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.jiayue.ipfcst</groupId>
  90. <artifactId>ipfcst-common-data</artifactId>
  91. <version>3.0.0</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.jiayue.ipfcst</groupId>
  95. <artifactId>ipfcst-common-security</artifactId>
  96. <version>3.0.0</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.commons</groupId>
  100. <artifactId>commons-dbcp2</artifactId>
  101. <version>${commons-dbcp2.version}</version>
  102. </dependency>
  103. <!-- https://mvnrepository.com/artifact/com.googlecode.aviator/aviator -->
  104. <dependency>
  105. <groupId>com.googlecode.aviator</groupId>
  106. <artifactId>aviator</artifactId>
  107. <version>${aviator.version}</version>
  108. </dependency>
  109. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  110. <dependency>
  111. <groupId>com.alibaba</groupId>
  112. <artifactId>fastjson</artifactId>
  113. <version>${fastjson.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.reflections</groupId>
  117. <artifactId>reflections</artifactId>
  118. <version>${reflections.version}</version>
  119. <exclusions>
  120. <exclusion>
  121. <artifactId>javassist</artifactId>
  122. <groupId>org.javassist</groupId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.commons</groupId>
  128. <artifactId>commons-lang3</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>net.sf.ehcache</groupId>
  132. <artifactId>ehcache</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-starter-web</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-websocket</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-starter-undertow</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-fileupload</groupId>
  148. <artifactId>commons-fileupload</artifactId>
  149. <version>${commons.fileupload.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.velocity</groupId>
  153. <artifactId>velocity</artifactId>
  154. <version>${velocity.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>io.netty</groupId>
  158. <artifactId>netty-all</artifactId>
  159. <version>${netty.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>joda-time</groupId>
  163. <artifactId>joda-time</artifactId>
  164. <version>${jodatime.version}</version>
  165. </dependency>
  166. <!--ftp上传下载依赖包-->
  167. <dependency>
  168. <groupId>commons-net</groupId>
  169. <artifactId>commons-net</artifactId>
  170. <version>${commons.net.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework.boot</groupId>
  174. <artifactId>spring-boot-starter-aop</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>net.sourceforge.jexcelapi</groupId>
  178. <artifactId>jxl</artifactId>
  179. <version>2.6.10</version>
  180. </dependency>
  181. <!-- SSH安全连接所使用的类库 -->
  182. <dependency>
  183. <groupId>com.jcraft</groupId>
  184. <artifactId>jsch</artifactId>
  185. <version>0.1.55</version>
  186. <scope>compile</scope>
  187. <optional>true</optional>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.commons</groupId>
  191. <artifactId>commons-compress</artifactId>
  192. <version>1.5</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.syjy</groupId>
  196. <artifactId>calculation-spring-boot-starter</artifactId>
  197. <version>0.0.28</version>
  198. <exclusions>
  199. <exclusion>
  200. <groupId>com.alibaba.cloud</groupId>
  201. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  202. </exclusion>
  203. </exclusions>
  204. </dependency>
  205. </dependencies>
  206. <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
  207. <profile>
  208. <id>window</id>
  209. <properties>
  210. <npm>npm.cmd</npm>
  211. </properties>
  212. <activation>
  213. <activeByDefault>true</activeByDefault>
  214. </activation>
  215. </profile>
  216. <profile>
  217. <id>linux</id>
  218. <properties>
  219. <npm>npm</npm>
  220. </properties>
  221. </profile>
  222. </profiles>
  223. <build>
  224. <finalName>${project.artifactId}</finalName>
  225. <resources>
  226. <resource>
  227. <directory>src/main/resources</directory>
  228. <filtering>true</filtering>
  229. <excludes>
  230. <exclude>*.keystore</exclude>
  231. </excludes>
  232. </resource>
  233. <resource>
  234. <directory>src/main/resources</directory>
  235. <filtering>false</filtering>
  236. <includes>
  237. <include>*.keystore</include>
  238. </includes>
  239. </resource>
  240. </resources>
  241. <plugins>
  242. <plugin>
  243. <artifactId>maven-compiler-plugin</artifactId>
  244. <version>3.7.0</version>
  245. <configuration>
  246. <source>${java.version}</source>
  247. <target>${java.version}</target>
  248. <encoding>${project.build.sourceEncoding}</encoding>
  249. <!--<compilerArgs>-->
  250. <!--&lt;!&ndash; 过期的方法的警告&ndash;&gt;-->
  251. <!--<arg>-Xlint:deprecation</arg>-->
  252. <!--</compilerArgs>-->
  253. <compilerArguments>
  254. <!-- 是否输出所有的编译信息(包括类的加载等)-->
  255. <!--<verbose />-->
  256. <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
  257. 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
  258. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
  259. </compilerArguments>
  260. </configuration>
  261. </plugin>
  262. <!--跳过test类-->
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-surefire-plugin</artifactId>
  266. <version>2.21.0</version>
  267. <configuration>
  268. <skipTests>true</skipTests>
  269. </configuration>
  270. </plugin>
  271. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-clean-plugin</artifactId>
  275. <version>3.1.0</version>
  276. <configuration>
  277. <filesets>
  278. <fileset>
  279. <!-- 前端资源目录,即:存放前端包目录-->
  280. <directory>src/main/resources/static</directory>
  281. </fileset>
  282. <fileset>
  283. <!-- Vue项目打包自动生成的dist目录 -->
  284. <directory>${basedir}/dist</directory>
  285. </fileset>
  286. </filesets>
  287. </configuration>
  288. </plugin>
  289. </plugins>
  290. </build>
  291. <!--上传配置 必须 -->
  292. <distributionManagement>
  293. <repository>
  294. <id>jiayue-releases</id>
  295. <name>Nexus Release Repository</name>
  296. <url>http://49.4.68.219:8888/repository/jiayue-releases/</url>
  297. </repository>
  298. <snapshotRepository>
  299. <id>jiayue-snapshots</id>
  300. <name>Nexus Snapshot Repository</name>
  301. <url>http://49.4.68.219:8888/repository/jiayue-snapshots/</url>
  302. </snapshotRepository>
  303. </distributionManagement>
  304. </project>