pom.xml 9.3 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. <parent>
  6. <artifactId>autodop</artifactId>
  7. <groupId>cn.reghao.autodop</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>dmaster</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.autodop</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-web</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-validation</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-aop</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-devtools</artifactId>
  51. <optional>true</optional>
  52. <scope>true</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-configuration-processor</artifactId>
  57. <optional>true</optional>
  58. </dependency>
  59. <dependency>
  60. <groupId>javax.validation</groupId>
  61. <artifactId>validation-api</artifactId>
  62. <version>2.0.1.Final</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-security</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-test</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.thymeleaf.extras</groupId>
  79. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-actuator</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-data-jpa</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-websocket</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-cache</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>com.aliyun.oss</groupId>
  126. <artifactId>aliyun-sdk-oss</artifactId>
  127. <version>2.8.3</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.maven.shared</groupId>
  131. <artifactId>maven-invoker</artifactId>
  132. <version>3.0.1</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.tmatesoft.svnkit</groupId>
  136. <artifactId>svnkit</artifactId>
  137. <version>1.10.3</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.eclipse.jgit</groupId>
  141. <artifactId>org.eclipse.jgit</artifactId>
  142. <version>5.5.0.201909110433-r</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.jcraft</groupId>
  146. <artifactId>jsch</artifactId>
  147. <version>0.1.55</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>io.jsonwebtoken</groupId>
  151. <artifactId>jjwt</artifactId>
  152. <version>0.9.1</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.dom4j</groupId>
  156. <artifactId>dom4j</artifactId>
  157. <version>2.1.1</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.sun.mail</groupId>
  161. <artifactId>javax.mail</artifactId>
  162. <version>RELEASE</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.quartz-scheduler</groupId>
  166. <artifactId>quartz</artifactId>
  167. <version>2.3.2</version>
  168. </dependency>
  169. </dependencies>
  170. <profiles>
  171. <profile>
  172. <id>dev</id>
  173. <properties>
  174. <profile.active>dev</profile.active>
  175. </properties>
  176. <activation>
  177. <activeByDefault>true</activeByDefault>
  178. </activation>
  179. </profile>
  180. <profile>
  181. <id>test</id>
  182. <properties>
  183. <profile.active>test</profile.active>
  184. </properties>
  185. </profile>
  186. <profile>
  187. <id>prod</id>
  188. <properties>
  189. <profile.active>prod</profile.active>
  190. </properties>
  191. </profile>
  192. </profiles>
  193. <build>
  194. <finalName>${project.artifactId}</finalName>
  195. <resources>
  196. <resource>
  197. <directory>src/main/resources</directory>
  198. <filtering>true</filtering>
  199. <includes>
  200. <include>banner.txt</include>
  201. <!-- 配置和日志文件 -->
  202. <include>application.yml</include>
  203. <include>application-${profile.active}.yml</include>
  204. <include>logback-spring.xml</include>
  205. <!-- 前端静态资源 -->
  206. <include>static/**</include>
  207. <include>templates/**</include>
  208. </includes>
  209. </resource>
  210. </resources>
  211. <plugins>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-compiler-plugin</artifactId>
  215. <version>3.8.1</version>
  216. <configuration>
  217. <source>11</source>
  218. <target>11</target>
  219. </configuration>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-resources-plugin</artifactId>
  224. <version>2.4.3</version>
  225. <configuration>
  226. <!-- 让 maven 不处理字体 -->
  227. <nonFilteredFileExtensions>
  228. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  229. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  230. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  231. </nonFilteredFileExtensions>
  232. </configuration>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.springframework.boot</groupId>
  236. <artifactId>spring-boot-maven-plugin</artifactId>
  237. <version>2.3.9.RELEASE</version>
  238. <executions>
  239. <execution>
  240. <goals>
  241. <goal>repackage</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. <configuration>
  246. <outputDirectory>${project.build.outputDir}</outputDirectory>
  247. </configuration>
  248. </plugin>
  249. </plugins>
  250. </build>
  251. </project>