pom.xml 9.2 KB

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