pom.xml 10 KB

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