pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.2.2.RELEASE</version>
  8. <relativePath /> <!-- lookup parent from repository -->
  9. </parent>
  10. <groupId>com.persagy</groupId>
  11. <artifactId>alarm-engine</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>alarm-engine</name>
  14. <description>project alarm program</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. <exclusions>
  29. <exclusion>
  30. <artifactId>spring-web</artifactId>
  31. <groupId>org.springframework</groupId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <!-- swagger -->
  36. <dependency>
  37. <groupId>com.github.xiaoymin</groupId>
  38. <artifactId>knife4j-spring-boot-starter</artifactId>
  39. <!--在引用时请在maven中央仓库搜索最新版本号 -->
  40. <version>2.0.2</version>
  41. </dependency>
  42. <!--guava -->
  43. <dependency>
  44. <groupId>com.google.guava</groupId>
  45. <artifactId>guava</artifactId>
  46. <version>20.0</version>
  47. </dependency>
  48. <!--lombok -->
  49. <dependency>
  50. <groupId>org.projectlombok</groupId>
  51. <artifactId>lombok</artifactId>
  52. <optional>true</optional>
  53. </dependency>
  54. <!-- 数学逻辑运算解析库 -->
  55. <dependency>
  56. <groupId>com.googlecode.aviator</groupId>
  57. <artifactId>aviator</artifactId>
  58. <version>5.2.5</version>
  59. </dependency>
  60. <!-- netty -->
  61. <dependency>
  62. <groupId>io.netty</groupId>
  63. <artifactId>netty-all</artifactId>
  64. <version>4.1.42.Final</version>
  65. </dependency>
  66. <!--测试工具 -->
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-test</artifactId>
  70. <scope>test</scope>
  71. <exclusions>
  72. <exclusion>
  73. <groupId>org.junit.vintage</groupId>
  74. <artifactId>junit-vintage-engine</artifactId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <!-- commons-lang3常用工具类 -->
  79. <dependency>
  80. <groupId>org.apache.commons</groupId>
  81. <artifactId>commons-lang3</artifactId>
  82. </dependency>
  83. <!--fastjson JSON组件 -->
  84. <dependency>
  85. <groupId>com.alibaba</groupId>
  86. <artifactId>fastjson</artifactId>
  87. <version>1.2.71</version>
  88. <scope>compile</scope>
  89. </dependency>
  90. <!--hutool工具类 -->
  91. <dependency>
  92. <groupId>cn.hutool</groupId>
  93. <artifactId>hutool-all</artifactId>
  94. <version>5.4.3</version>
  95. <scope>compile</scope>
  96. </dependency>
  97. <!--定时任务框架 -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-quartz</artifactId>
  101. </dependency>
  102. <!-- MYSQL -->
  103. <dependency>
  104. <groupId>mysql</groupId>
  105. <artifactId>mysql-connector-java</artifactId>
  106. <scope>runtime</scope>
  107. </dependency>
  108. <!-- Spring Boot JDBC -->
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-jdbc</artifactId>
  112. </dependency>
  113. <!-- 数据库连接池 -->
  114. <dependency>
  115. <groupId>com.alibaba</groupId>
  116. <artifactId>druid-spring-boot-starter</artifactId>
  117. <version>1.1.22</version>
  118. </dependency>
  119. <!-- spring-data-jpa -->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-starter-data-jpa</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-starter-aop</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.github.dadiyang</groupId>
  130. <artifactId>autologging-aop</artifactId>
  131. <version>1.0.0</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.vladmihalcea</groupId>
  135. <artifactId>hibernate-types-52</artifactId>
  136. <version>2.9.13</version>
  137. </dependency>
  138. <!-- ======================Redis jar坐标========================= -->
  139. <dependency>
  140. <groupId>org.springframework.boot</groupId>
  141. <artifactId>spring-boot-starter-data-redis</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>redis.clients</groupId>
  145. <artifactId>jedis</artifactId>
  146. </dependency>
  147. <!--rabbitmq -->
  148. <dependency>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-starter-amqp</artifactId>
  151. <exclusions>
  152. <exclusion>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-starter-logging</artifactId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. <!-- 解决阿里云监测漏洞,升级以下jar包版本 -->
  159. <dependency>
  160. <artifactId>spring-web</artifactId>
  161. <groupId>org.springframework</groupId>
  162. <version>5.2.3.RELEASE</version>
  163. </dependency>
  164. </dependencies>
  165. <build>
  166. <finalName>alarm-engine</finalName>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-compiler-plugin</artifactId>
  171. <version>3.8.1</version>
  172. <configuration>
  173. <source>1.8</source>
  174. <target>1.8</target>
  175. <encoding>UTF-8</encoding>
  176. <skip>true</skip>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-maven-plugin</artifactId>
  182. </plugin>
  183. <!-- 按照测试要求打成zip需要的配置 -->
  184. <plugin>
  185. <groupId>com.coderplus.maven.plugins</groupId>
  186. <artifactId>copy-rename-maven-plugin</artifactId>
  187. <version>1.0.1</version>
  188. <executions>
  189. <execution>
  190. <id>rename-file</id>
  191. <phase>compile</phase>
  192. <goals>
  193. <goal>rename</goal>
  194. </goals>
  195. <configuration>
  196. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <!--拷贝资源文件 copy-resources -->
  202. <plugin>
  203. <artifactId>maven-resources-plugin</artifactId>
  204. <executions>
  205. <execution>
  206. <id>copy-resources</id>
  207. <phase>package</phase>
  208. <goals>
  209. <goal>copy-resources</goal>
  210. </goals>
  211. <configuration>
  212. <resources>
  213. <resource>
  214. <directory>src/main/resources/</directory>
  215. <includes>
  216. <include>**/*.yml</include>
  217. </includes>
  218. </resource>
  219. <resource>
  220. <directory>${project.build.directory}</directory>
  221. <includes>
  222. <include>**/version.txt</include>
  223. </includes>
  224. </resource>
  225. </resources>
  226. <outputDirectory>${project.build.directory}/config</outputDirectory>
  227. </configuration>
  228. </execution>
  229. <!--拷贝启动脚本 -->
  230. <execution>
  231. <id>copy-version</id>
  232. <phase>package</phase>
  233. <goals>
  234. <goal>copy-resources</goal>
  235. </goals>
  236. <configuration>
  237. <resources>
  238. <resource>
  239. <directory>src/script</directory>
  240. </resource>
  241. </resources>
  242. <outputDirectory>${project.build.directory}</outputDirectory>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. </plugins>
  248. </build>
  249. </project>