pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.miniframe</groupId>
  12. <artifactId>miniframe</artifactId>
  13. <version>1.0.0</version>
  14. <name>miniframe</name>
  15. <description>miniframe</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <timestamp>${maven.build.timestamp}</timestamp>
  20. <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
  21. <maven.resources.overwrite>true</maven.resources.overwrite>
  22. <spring-cloud.version>2020.0.4</spring-cloud.version>
  23. </properties>
  24. <dependencies>
  25. <!-- nacos 依赖 -->
  26. <!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery -->
  27. <dependency>
  28. <groupId>com.alibaba.cloud</groupId>
  29. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  30. <version>2.2.7.RELEASE</version>
  31. <exclusions>
  32. <exclusion>
  33. <groupId>org.springframework.cloud</groupId>
  34. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  35. </exclusion>
  36. </exclusions>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.taobao</groupId>
  40. <artifactId>taobao-sdk-java-auto</artifactId>
  41. <version>1.0.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-loadbalancer</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.cloud</groupId>
  49. <artifactId>spring-cloud-starter-openfeign</artifactId>
  50. </dependency>
  51. <!-- https://mvnrepository.com/artifact/io.github.openfeign/feign-httpclient -->
  52. <dependency>
  53. <groupId>io.github.openfeign</groupId>
  54. <artifactId>feign-httpclient</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-actuator</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-autoconfigure</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-web</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-configuration-processor</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-aop</artifactId>
  76. </dependency>
  77. <!-- https://mvnrepository.com/artifact/org.springframework/spring-context-support -->
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-context-support</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-quartz</artifactId>
  89. </dependency>
  90. <!-- redis缓存 -->
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-data-redis</artifactId>
  94. </dependency>
  95. <!-- ehcache缓存 -->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-cache</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>net.sf.ehcache</groupId>
  102. <artifactId>ehcache</artifactId>
  103. <version>${ehcache.version}</version>
  104. </dependency>
  105. <!-- RabbitMq -->
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-amqp</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.projectlombok</groupId>
  112. <artifactId>lombok</artifactId>
  113. </dependency>
  114. <!-- <dependency>-->
  115. <!-- <groupId>org.springframework.boot</groupId>-->
  116. <!-- <artifactId>spring-boot-starter-validation</artifactId>-->
  117. <!-- </dependency>-->
  118. <!-- 需要指定版本 -->
  119. <!-- miniframe框架 -->
  120. <dependency>
  121. <groupId>com.miniframe</groupId>
  122. <artifactId>miniframe-spring-boot-starter</artifactId>
  123. <version>2.1.0</version>
  124. <exclusions>
  125. <exclusion>
  126. <artifactId>poi</artifactId>
  127. <groupId>org.apache.poi</groupId>
  128. </exclusion>
  129. </exclusions>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.miniframe</groupId>
  133. <artifactId>miniframe-spring-boot-ext</artifactId>
  134. <version>2.1.0</version>
  135. </dependency>
  136. <!-- https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-core -->
  137. <dependency>
  138. <groupId>com.aliyun</groupId>
  139. <artifactId>aliyun-java-sdk-core</artifactId>
  140. <version>4.5.20</version>
  141. <exclusions>
  142. <exclusion>
  143. <artifactId>commons-logging</artifactId>
  144. <groupId>commons-logging</groupId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <!-- https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-cloudauth -->
  149. <dependency>
  150. <groupId>com.aliyun</groupId>
  151. <artifactId>aliyun-java-sdk-cloudauth</artifactId>
  152. <version>2.0.29</version>
  153. <exclusions>
  154. <exclusion>
  155. <artifactId>commons-logging</artifactId>
  156. <groupId>commons-logging</groupId>
  157. </exclusion>
  158. </exclusions>
  159. </dependency>
  160. <!-- https://mvnrepository.com/artifact/com.alipay.sdk/alipay-sdk-java -->
  161. <dependency>
  162. <groupId>com.alipay.sdk</groupId>
  163. <artifactId>alipay-sdk-java</artifactId>
  164. <version>3.4.27.ALL</version>
  165. <exclusions>
  166. <exclusion>
  167. <artifactId>commons-logging</artifactId>
  168. <groupId>commons-logging</groupId>
  169. </exclusion>
  170. </exclusions>
  171. </dependency>
  172. <!-- 自定义lib库 -->
  173. <!-- <dependency>-->
  174. <!-- <groupId>miniframe</groupId>-->
  175. <!-- <artifactId>ibatis</artifactId>-->
  176. <!-- <version>2.9.1</version>-->
  177. <!-- <scope>system</scope>-->
  178. <!-- <systemPath>${project.basedir}/lib/ibatis-2.9.1.jar</systemPath>-->
  179. <!-- </dependency>-->
  180. <!-- <dependency>-->
  181. <!-- <groupId>com.taobao</groupId>-->
  182. <!-- <artifactId>taobao-sdk-java-auto</artifactId>-->
  183. <!-- <version>1.0.0</version>-->
  184. <!-- <scope>system</scope>-->
  185. <!-- <systemPath>${project.basedir}/lib/taobao-sdk-java-auto.jar</systemPath>-->
  186. <!-- </dependency>-->
  187. <!--全局排除spring-boot-starter-logging内的所有依赖-->
  188. <dependency>
  189. <groupId>org.springframework.boot</groupId>
  190. <artifactId>spring-boot-starter-logging</artifactId>
  191. <exclusions>
  192. <exclusion>
  193. <groupId>*</groupId>
  194. <artifactId>*</artifactId>
  195. </exclusion>
  196. </exclusions>
  197. </dependency>
  198. <!--热启动-->
  199. <!-- <dependency>-->
  200. <!-- <groupId>org.springframework.boot</groupId>-->
  201. <!-- <artifactId>spring-boot-devtools</artifactId>-->
  202. <!-- <optional>true</optional> &lt;!&ndash; 这个需要为 true 热部署才有效 &ndash;&gt;-->
  203. <!-- </dependency>-->
  204. <!-- Test-->
  205. <dependency>
  206. <groupId>org.springframework.boot</groupId>
  207. <artifactId>spring-boot-starter-test</artifactId>
  208. <exclusions>
  209. <exclusion>
  210. <groupId>org.ow2.asm</groupId>
  211. <artifactId>asm</artifactId>
  212. </exclusion>
  213. </exclusions>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.aliyun</groupId>
  218. <artifactId>dysmsapi20170525</artifactId>
  219. <version>2.0.9</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>adi</groupId>
  223. <artifactId>vtk</artifactId>
  224. <version>1.0.0</version>
  225. </dependency>
  226. <!-- websocket -->
  227. <dependency>
  228. <groupId>org.springframework.boot</groupId>
  229. <artifactId>spring-boot-starter-websocket</artifactId>
  230. </dependency>
  231. <!--添加FreeMarker的依赖 ,版本是 2.3.29-->
  232. <dependency>
  233. <groupId>org.freemarker</groupId>
  234. <artifactId>freemarker</artifactId>
  235. <version>2.3.29</version>
  236. </dependency>
  237. <!--报告生成-->
  238. <dependency>
  239. <groupId>org.apache.logging.log4j</groupId>
  240. <artifactId>log4j-core</artifactId>
  241. <scope>compile</scope>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.apache.poi</groupId>
  245. <artifactId>poi</artifactId>
  246. <version>5.2.2</version>
  247. <scope>compile</scope>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.poi</groupId>
  251. <artifactId>poi-ooxml</artifactId>
  252. <version>5.2.2</version>
  253. <exclusions>
  254. <exclusion>
  255. <artifactId>poi</artifactId>
  256. <groupId>org.apache.poi</groupId>
  257. </exclusion>
  258. </exclusions>
  259. </dependency>
  260. </dependencies>
  261. <dependencyManagement>
  262. <dependencies>
  263. <dependency>
  264. <groupId>org.springframework.cloud</groupId>
  265. <artifactId>spring-cloud-dependencies</artifactId>
  266. <version>${spring-cloud.version}</version>
  267. <type>pom</type>
  268. <scope>import</scope>
  269. </dependency>
  270. </dependencies>
  271. </dependencyManagement>
  272. <build>
  273. <resources>
  274. <resource>
  275. <directory>src/main/resources</directory>
  276. <filtering>true</filtering>
  277. </resource>
  278. </resources>
  279. <finalName>service</finalName>
  280. <plugins>
  281. <!-- 指定多个源代码目录、多个资源文件目录 -->
  282. <plugin>
  283. <groupId>org.codehaus.mojo</groupId>
  284. <artifactId>build-helper-maven-plugin</artifactId>
  285. <executions>
  286. <execution>
  287. <id>add-ext-source</id>
  288. <phase>generate-sources</phase>
  289. <goals>
  290. <goal>add-source</goal>
  291. </goals>
  292. <configuration>
  293. <sources>
  294. <source>modelsrc</source>
  295. <source>definitionsrc</source>
  296. <source>generated</source>
  297. </sources>
  298. </configuration>
  299. </execution>
  300. <execution>
  301. <id>add-ext-resouce</id>
  302. <phase>generate-resources</phase>
  303. <goals>
  304. <goal>add-resource</goal>
  305. </goals>
  306. <configuration>
  307. <resources>
  308. <resource>
  309. <directory>modelsrc</directory>
  310. <exclude>**/*.java</exclude>
  311. </resource>
  312. <resource>
  313. <directory>commonsrc</directory>
  314. <exclude>**/*.java</exclude>
  315. </resource>
  316. <resource>
  317. <directory>generated</directory>
  318. <exclude>**/*.java</exclude>
  319. </resource>
  320. <resource>
  321. <directory>definitionsrc</directory>
  322. <exclude>**/*.java</exclude>
  323. </resource>
  324. <resource>
  325. <directory>profiles/${profiles.active}</directory>
  326. <exclude>**/*.java</exclude>
  327. </resource>
  328. </resources>
  329. </configuration>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.springframework.boot</groupId>
  335. <artifactId>spring-boot-maven-plugin</artifactId>
  336. <configuration>
  337. <fork>true</fork>
  338. <addResources>true</addResources>
  339. <includeSystemScope>true</includeSystemScope>
  340. </configuration>
  341. </plugin>
  342. <plugin>
  343. <groupId>org.apache.maven.plugins</groupId>
  344. <artifactId>maven-resources-plugin</artifactId>
  345. <!--使用默认的变量分割符即${} ,覆盖已有的resource文件-->
  346. <configuration>
  347. <useDefaultDelimiters>true</useDefaultDelimiters>
  348. <overwrite>true</overwrite>
  349. </configuration>
  350. </plugin>
  351. </plugins>
  352. </build>
  353. <profiles>
  354. <profile>
  355. <!-- 生产环境 -->
  356. <id>pro</id>
  357. <properties>
  358. <profiles.active>pro</profiles.active>
  359. </properties>
  360. </profile>
  361. <profile>
  362. <!-- 本地开发环境 -->
  363. <id>dev</id>
  364. <properties>
  365. <profiles.active>dev</profiles.active>
  366. </properties>
  367. <activation>
  368. <activeByDefault>true</activeByDefault>
  369. </activation>
  370. </profile>
  371. <profile>
  372. <!-- 测试环境 -->
  373. <id>test</id>
  374. <properties>
  375. <profiles.active>test</profiles.active>
  376. </properties>
  377. </profile>
  378. </profiles>
  379. <repositories>
  380. <repository>
  381. <id>aliyun</id>
  382. <name>aliyun</name>
  383. <url>https://maven.aliyun.com/repository/public</url>
  384. </repository>
  385. <repository>
  386. <id>spring</id>
  387. <url>https://maven.aliyun.com/repository/spring</url>
  388. <releases>
  389. <enabled>true</enabled>
  390. </releases>
  391. <snapshots>
  392. <enabled>true</enabled>
  393. </snapshots>
  394. </repository>
  395. <repository>
  396. <id>spring-plugin</id>
  397. <url>https://maven.aliyun.com/repository/spring-plugin</url>
  398. <releases>
  399. <enabled>true</enabled>
  400. </releases>
  401. <snapshots>
  402. <enabled>true</enabled>
  403. </snapshots>
  404. </repository>
  405. </repositories>
  406. </project>