pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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>devops</artifactId>
  7. <groupId>cn.reghao.devops</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>manager</artifactId>
  12. <properties>
  13. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  14. </properties>
  15. <dependencyManagement>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-dependencies</artifactId>
  20. <version>2.3.9.RELEASE</version>
  21. <type>pom</type>
  22. <scope>import</scope>
  23. </dependency>
  24. </dependencies>
  25. </dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>cn.reghao.devops</groupId>
  29. <artifactId>common</artifactId>
  30. <version>1.0.0</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-web</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-validation</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-aop</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-actuator</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-data-jpa</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-websocket</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-cache</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-configuration-processor</artifactId>
  72. <optional>true</optional>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-security</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-data-redis</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>javax.validation</groupId>
  88. <artifactId>validation-api</artifactId>
  89. <version>2.0.1.Final</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.thymeleaf.extras</groupId>
  93. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.github.ben-manes.caffeine</groupId>
  97. <artifactId>caffeine</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>mysql</groupId>
  101. <artifactId>mysql-connector-java</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.zaxxer</groupId>
  105. <artifactId>HikariCP</artifactId>
  106. <version>3.3.1</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>io.springfox</groupId>
  110. <artifactId>springfox-swagger2</artifactId>
  111. <version>2.9.2</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.springfox</groupId>
  115. <artifactId>springfox-swagger-ui</artifactId>
  116. <version>2.9.2</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.ecwid.consul</groupId>
  120. <artifactId>consul-api</artifactId>
  121. <version>1.4.5</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.maven.shared</groupId>
  125. <artifactId>maven-invoker</artifactId>
  126. <version>3.0.1</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.tmatesoft.svnkit</groupId>
  130. <artifactId>svnkit</artifactId>
  131. <version>1.10.3</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.eclipse.jgit</groupId>
  135. <artifactId>org.eclipse.jgit</artifactId>
  136. <version>5.5.0.201909110433-r</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.jcraft</groupId>
  140. <artifactId>jsch</artifactId>
  141. <version>0.1.55</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>io.jsonwebtoken</groupId>
  145. <artifactId>jjwt</artifactId>
  146. <version>0.9.1</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.dom4j</groupId>
  150. <artifactId>dom4j</artifactId>
  151. <version>2.1.1</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.sun.mail</groupId>
  155. <artifactId>javax.mail</artifactId>
  156. <version>RELEASE</version>
  157. </dependency>
  158. </dependencies>
  159. <profiles>
  160. <profile>
  161. <id>dev</id>
  162. <properties>
  163. <profile.active>dev</profile.active>
  164. </properties>
  165. <activation>
  166. <activeByDefault>true</activeByDefault>
  167. </activation>
  168. </profile>
  169. <profile>
  170. <id>test</id>
  171. <properties>
  172. <profile.active>test</profile.active>
  173. </properties>
  174. </profile>
  175. <profile>
  176. <id>prod</id>
  177. <properties>
  178. <profile.active>prod</profile.active>
  179. </properties>
  180. </profile>
  181. </profiles>
  182. <build>
  183. <!--<finalName>${project.parent.artifactId}-${project.artifactId}</finalName>-->
  184. <finalName>devops-manager</finalName>
  185. <resources>
  186. <resource>
  187. <directory>src/main/resources</directory>
  188. <filtering>true</filtering>
  189. <includes>
  190. <include>banner.txt</include>
  191. <include>application.yml</include>
  192. <include>application-${profile.active}.yml</include>
  193. <include>logback-spring.xml</include>
  194. <!-- 前端静态资源 -->
  195. <include>static/**</include>
  196. <include>templates/**</include>
  197. </includes>
  198. </resource>
  199. </resources>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.8.1</version>
  205. <configuration>
  206. <source>11</source>
  207. <target>11</target>
  208. </configuration>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-resources-plugin</artifactId>
  213. <version>2.4.3</version>
  214. <configuration>
  215. <!-- 让 maven 不处理字体 -->
  216. <nonFilteredFileExtensions>
  217. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  218. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  219. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  220. </nonFilteredFileExtensions>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.springframework.boot</groupId>
  225. <artifactId>spring-boot-maven-plugin</artifactId>
  226. <version>2.3.9.RELEASE</version>
  227. <executions>
  228. <execution>
  229. <goals>
  230. <goal>repackage</goal>
  231. </goals>
  232. </execution>
  233. </executions>
  234. <configuration>
  235. <!-- 生成的 jar 包输出到指定目录 -->
  236. <outputDirectory>${project.build.outputDir}</outputDirectory>
  237. </configuration>
  238. </plugin>
  239. </plugins>
  240. </build>
  241. </project>