pom.xml 7.4 KB

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