pom.xml 7.3 KB

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