pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. <!-- https://mvnrepository.com/artifact/com.googlecode.aviator/aviator -->
  84. <dependency>
  85. <groupId>com.googlecode.aviator</groupId>
  86. <artifactId>aviator</artifactId>
  87. <version>${aviator.version}</version>
  88. </dependency>
  89. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  90. <dependency>
  91. <groupId>com.alibaba</groupId>
  92. <artifactId>fastjson</artifactId>
  93. <version>${fastjson.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.reflections</groupId>
  97. <artifactId>reflections</artifactId>
  98. <version>${reflections.version}</version>
  99. <exclusions>
  100. <exclusion>
  101. <artifactId>javassist</artifactId>
  102. <groupId>org.javassist</groupId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.commons</groupId>
  108. <artifactId>commons-lang3</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-websocket</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-undertow</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>commons-fileupload</groupId>
  120. <artifactId>commons-fileupload</artifactId>
  121. <version>${commons.fileupload.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.velocity</groupId>
  125. <artifactId>velocity</artifactId>
  126. <version>${velocity.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>io.netty</groupId>
  130. <artifactId>netty-all</artifactId>
  131. <version>${netty.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>joda-time</groupId>
  135. <artifactId>joda-time</artifactId>
  136. <version>${jodatime.version}</version>
  137. </dependency>
  138. <!--ftp上传下载依赖包-->
  139. <dependency>
  140. <groupId>commons-net</groupId>
  141. <artifactId>commons-net</artifactId>
  142. <version>${commons.net.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-aop</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>net.sourceforge.jexcelapi</groupId>
  150. <artifactId>jxl</artifactId>
  151. <version>2.6.10</version>
  152. </dependency>
  153. <!-- SSH安全连接所使用的类库 -->
  154. <dependency>
  155. <groupId>com.jcraft</groupId>
  156. <artifactId>jsch</artifactId>
  157. <version>0.1.55</version>
  158. <scope>compile</scope>
  159. <optional>true</optional>
  160. </dependency>
  161. </dependencies>
  162. <profiles> <!--考虑到window 和linux环境 npm命令格式的问题,使用maven的profile实现动态指定命令-->
  163. <profile>
  164. <id>window</id>
  165. <properties>
  166. <npm>npm.cmd</npm>
  167. </properties>
  168. <activation>
  169. <activeByDefault>true</activeByDefault>
  170. </activation>
  171. </profile>
  172. <profile>
  173. <id>linux</id>
  174. <properties>
  175. <npm>npm</npm>
  176. </properties>
  177. </profile>
  178. </profiles>
  179. <build>
  180. <finalName>${project.artifactId}</finalName>
  181. <resources>
  182. <resource>
  183. <directory>src/main/resources</directory>
  184. <filtering>true</filtering>
  185. <excludes>
  186. <exclude>*.keystore</exclude>
  187. </excludes>
  188. </resource>
  189. <resource>
  190. <directory>src/main/resources</directory>
  191. <filtering>false</filtering>
  192. <includes>
  193. <include>*.keystore</include>
  194. </includes>
  195. </resource>
  196. </resources>
  197. <plugins>
  198. <plugin>
  199. <artifactId>maven-compiler-plugin</artifactId>
  200. <version>3.7.0</version>
  201. <configuration>
  202. <source>${java.version}</source>
  203. <target>${java.version}</target>
  204. <encoding>${project.build.sourceEncoding}</encoding>
  205. <!--<compilerArgs>-->
  206. <!--&lt;!&ndash; 过期的方法的警告&ndash;&gt;-->
  207. <!--<arg>-Xlint:deprecation</arg>-->
  208. <!--</compilerArgs>-->
  209. <compilerArguments>
  210. <!-- 是否输出所有的编译信息(包括类的加载等)-->
  211. <!--<verbose />-->
  212. <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
  213. 导致maven找不到(java7以后会出现这个问题),将这2个jar包拷贝到jdk的lib下面估计也好使-->
  214. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
  215. </compilerArguments>
  216. </configuration>
  217. </plugin>
  218. <!--跳过test类-->
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-surefire-plugin</artifactId>
  222. <version>2.21.0</version>
  223. <configuration>
  224. <skipTests>true</skipTests>
  225. </configuration>
  226. </plugin>
  227. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-clean-plugin</artifactId>
  231. <version>3.1.0</version>
  232. <configuration>
  233. <filesets>
  234. <fileset>
  235. <!-- 前端资源目录,即:存放前端包目录-->
  236. <directory>src/main/resources/static</directory>
  237. </fileset>
  238. <fileset>
  239. <!-- Vue项目打包自动生成的dist目录 -->
  240. <directory>${basedir}/dist</directory>
  241. </fileset>
  242. </filesets>
  243. </configuration>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. <!--上传配置 必须 -->
  248. <distributionManagement>
  249. <repository>
  250. <id>jiayue-releases</id>
  251. <name>Nexus Release Repository</name>
  252. <url>http://49.4.68.219:8888/repository/jiayue-releases/</url>
  253. </repository>
  254. <snapshotRepository>
  255. <id>jiayue-snapshots</id>
  256. <name>Nexus Snapshot Repository</name>
  257. <url>http://49.4.68.219:8888/repository/jiayue-snapshots/</url>
  258. </snapshotRepository>
  259. </distributionManagement>
  260. </project>