pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>monitor</artifactId>
  7. <groupId>com.usthe.tancloud</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>manager</artifactId>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <mysql.version>8.0.16</mysql.version>
  15. <snake.yaml.version>1.26</snake.yaml.version>
  16. <sureness-core.version>1.0.5</sureness-core.version>
  17. </properties>
  18. <dependencies>
  19. <!-- common -->
  20. <dependency>
  21. <groupId>com.usthe.tancloud</groupId>
  22. <artifactId>common</artifactId>
  23. <version>1.0</version>
  24. </dependency>
  25. <!-- data warehouse -->
  26. <dependency>
  27. <groupId>com.usthe.tancloud</groupId>
  28. <artifactId>warehouse</artifactId>
  29. <version>1.0</version>
  30. </dependency>
  31. <!-- alerter -->
  32. <dependency>
  33. <groupId>com.usthe.tancloud</groupId>
  34. <artifactId>alerter</artifactId>
  35. <version>1.0</version>
  36. </dependency>
  37. <!-- collector -->
  38. <dependency>
  39. <groupId>com.usthe.tancloud</groupId>
  40. <artifactId>collector</artifactId>
  41. <version>1.0</version>
  42. </dependency>
  43. <!-- spring -->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-web</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-configuration-processor</artifactId>
  51. <optional>true</optional>
  52. </dependency>
  53. <!--thymeleaf依赖-->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>net.sourceforge.nekohtml</groupId>
  60. <artifactId>nekohtml</artifactId>
  61. <version>1.9.22</version>
  62. </dependency>
  63. <!-- data jdbc -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-jdbc</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-data-jpa</artifactId>
  71. </dependency>
  72. <!-- mysql -->
  73. <dependency>
  74. <groupId>mysql</groupId>
  75. <artifactId>mysql-connector-java</artifactId>
  76. <version>${mysql.version}</version>
  77. <!--<scope>runtime</scope>-->
  78. </dependency>
  79. <!-- email -->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-mail</artifactId>
  83. </dependency>
  84. <!-- swagger -->
  85. <dependency>
  86. <groupId>io.springfox</groupId>
  87. <artifactId>springfox-boot-starter</artifactId>
  88. </dependency>
  89. <!-- yaml file load -->
  90. <dependency>
  91. <groupId>org.yaml</groupId>
  92. <artifactId>snakeyaml</artifactId>
  93. <version>${snake.yaml.version}</version>
  94. </dependency>
  95. <!-- validation -->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-validation</artifactId>
  99. </dependency>
  100. <!--sureness-->
  101. <dependency>
  102. <groupId>com.usthe.sureness</groupId>
  103. <artifactId>spring-boot-starter-sureness</artifactId>
  104. <version>1.0.6.beta1</version>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <finalName>hertzbeat</finalName>
  109. <resources>
  110. <resource>
  111. <directory>src/main/resources</directory>
  112. <filtering>true</filtering>
  113. <includes>
  114. <include>application.yml</include>
  115. <include>sureness.yml</include>
  116. <include>banner.txt</include>
  117. <include>define/**</include>
  118. <include>**/*.html</include>
  119. </includes>
  120. </resource>
  121. </resources>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-jar-plugin</artifactId>
  126. <version>3.2.0</version>
  127. <configuration>
  128. <classesDirectory>target/classes/</classesDirectory>
  129. <archive>
  130. <!--生成的jar包不包含maven描述相关文件-->
  131. <addMavenDescriptor>false</addMavenDescriptor>
  132. <manifest>
  133. <!--项目启动类-->
  134. <mainClass>com.usthe.manager.Manager</mainClass>
  135. <useUniqueVersions>false</useUniqueVersions>
  136. <!--第三方JAR加入类构建的路径maven-dependency-plugin-->
  137. <addClasspath>true</addClasspath>
  138. <!--外部依赖jar包的位置-->
  139. <classpathPrefix>lib/</classpathPrefix>
  140. </manifest>
  141. <manifestEntries>
  142. <Class-Path>. config</Class-Path>
  143. </manifestEntries>
  144. </archive>
  145. </configuration>
  146. </plugin>
  147. <!--关键插件,maven提供的assembly插件,需要放在最后-->
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-assembly-plugin</artifactId>
  151. <version>3.3.0</version>
  152. <executions>
  153. <execution>
  154. <id>make-zip</id>
  155. <!--绑定的maven操作-->
  156. <phase>package</phase>
  157. <!--运行一次-->
  158. <goals>
  159. <goal>single</goal>
  160. </goals>
  161. <configuration>
  162. <descriptors>
  163. <descriptor>../script/assembly/server/assembly.xml</descriptor>
  164. </descriptors>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </project>