pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.jzlife.report</groupId>
  6. <artifactId>report</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.1.1.RELEASE</version>
  13. <relativePath/> <!-- lookup parent from repository -->
  14. </parent>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.sun.mail</groupId>
  22. <artifactId>javax.mail</artifactId>
  23. </dependency>
  24. <!-- 阿里sdk -->
  25. <dependency>
  26. <groupId>com.aliyun</groupId>
  27. <artifactId>aliyun-java-sdk-core</artifactId>
  28. <version>4.4.2</version>
  29. </dependency>
  30. <!-- <dependency>-->
  31. <!-- <groupId>com.bstek.ureport</groupId>-->
  32. <!-- <artifactId>ureport2-console</artifactId>-->
  33. <!-- <version>2.2.9</version>-->
  34. <!-- </dependency>-->
  35. <dependency>
  36. <groupId>com.google.guava</groupId>
  37. <artifactId>guava</artifactId>
  38. <version>31.0.1-jre</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-devtools</artifactId>
  43. <optional>true</optional>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.fasterxml.jackson.core</groupId>
  47. <artifactId>jackson-databind</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <!-- Spring Boot Mybatis 依赖 -->
  59. <dependency>
  60. <groupId>org.mybatis.spring.boot</groupId>
  61. <artifactId>mybatis-spring-boot-starter</artifactId>
  62. <version>1.2.0</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>tk.mybatis</groupId>
  66. <artifactId>mapper-spring-boot-starter</artifactId>
  67. <version>1.2.4</version>
  68. </dependency>
  69. <!-- MySQL 连接驱动依赖 -->
  70. <dependency>
  71. <groupId>mysql</groupId>
  72. <artifactId>mysql-connector-java</artifactId>
  73. <version>8.0.25</version>
  74. </dependency>
  75. <!-- 数据库连接池 -->
  76. <dependency>
  77. <groupId>com.alibaba</groupId>
  78. <artifactId>druid-spring-boot-starter</artifactId>
  79. <version>1.2.8</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.alibaba</groupId>
  83. <artifactId>fastjson</artifactId>
  84. <version>1.2.79</version>
  85. </dependency>
  86. <!-- For log4j -->
  87. <dependency>
  88. <groupId>log4j</groupId>
  89. <artifactId>log4j</artifactId>
  90. <version>1.2.17</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.commons</groupId>
  94. <artifactId>commons-lang3</artifactId>
  95. <version>3.12.0</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>eu.bitwalker</groupId>
  99. <artifactId>UserAgentUtils</artifactId>
  100. <version>1.21</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>commons-httpclient</groupId>
  104. <artifactId>commons-httpclient</artifactId>
  105. <version>3.1</version>
  106. </dependency>
  107. <!--redis依赖配置 -->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-data-redis</artifactId>
  111. </dependency>
  112. <!--lombok依赖 -->
  113. <dependency>
  114. <groupId>org.projectlombok</groupId>
  115. <artifactId>lombok</artifactId>
  116. <version>1.18.30</version>
  117. <scope>provided</scope>
  118. <optional>true</optional>
  119. </dependency>
  120. <dependency>
  121. <groupId>io.springfox</groupId>
  122. <artifactId>springfox-swagger2</artifactId>
  123. <version>2.6.1</version>
  124. <scope>compile</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>io.springfox</groupId>
  128. <artifactId>springfox-swagger-ui</artifactId>
  129. <version>2.6.1</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.github.xiaoymin</groupId>
  133. <artifactId>knife4j-spring-boot-starter</artifactId>
  134. <version>2.0.4</version>
  135. </dependency>
  136. <!-- ppi -->
  137. <dependency>
  138. <groupId>com.github.pagehelper</groupId>
  139. <artifactId>pagehelper-spring-boot-starter</artifactId>
  140. <version>1.2.5</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework</groupId>
  144. <artifactId>spring-aop</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework</groupId>
  148. <artifactId>spring-aspects</artifactId>
  149. </dependency>
  150. <!--okHttp-->
  151. <dependency>
  152. <groupId>com.squareup.okhttp3</groupId>
  153. <artifactId>okhttp</artifactId>
  154. <version>4.9.2</version>
  155. </dependency>
  156. <!--katolin-->
  157. <dependency>
  158. <groupId>org.jetbrains.kotlin</groupId>
  159. <artifactId>kotlin-stdlib</artifactId>
  160. <version>1.3.70</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>cn.afterturn</groupId>
  164. <artifactId>easypoi-base</artifactId>
  165. <version>4.4.0</version>
  166. <exclusions>
  167. <exclusion>
  168. <groupId>org.apache.poi</groupId>
  169. <artifactId>poi</artifactId>
  170. </exclusion>
  171. <exclusion>
  172. <groupId>org.apache.poi</groupId>
  173. <artifactId>poi-ooxml</artifactId>
  174. </exclusion>
  175. <exclusion>
  176. <groupId>org.apache.poi</groupId>
  177. <artifactId>poi-ooxml-schemas</artifactId>
  178. </exclusion>
  179. </exclusions>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.alibaba</groupId>
  183. <artifactId>easyexcel</artifactId>
  184. <version>3.3.3</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>cn.hutool</groupId>
  188. <artifactId>hutool-all</artifactId>
  189. <version>5.6.5</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.shiro</groupId>
  193. <artifactId>shiro-spring</artifactId>
  194. <version>1.4.0</version>
  195. </dependency>
  196. </dependencies>
  197. <dependencyManagement>
  198. <dependencies>
  199. <dependency>
  200. <groupId>org.springframework.cloud</groupId>
  201. <artifactId>spring-cloud-dependencies</artifactId>
  202. <version>${spring-cloud.version}</version>
  203. <type>pom</type>
  204. <scope>import</scope>
  205. </dependency>
  206. </dependencies>
  207. </dependencyManagement>
  208. <build>
  209. <finalName>reportservice</finalName>
  210. <resources>
  211. <resource>
  212. <directory>src/main/java</directory>
  213. <includes>
  214. <include>**/*.yml</include>
  215. <include>**/*.properties</include>
  216. <include>**/*.xml</include>
  217. </includes>
  218. <filtering>false</filtering>
  219. </resource>
  220. <resource>
  221. <directory>src/main/resources</directory>
  222. <includes>
  223. <include>**/*.yml</include>
  224. <include>**/*.properties</include>
  225. <include>**/*.xml</include>
  226. </includes>
  227. <filtering>false</filtering>
  228. </resource>
  229. <resource>
  230. <directory>lib</directory>
  231. <targetPath>BOOT-INF/lib/</targetPath>
  232. <includes>
  233. <include>**/*.jar</include>
  234. </includes>
  235. <filtering>false</filtering>
  236. </resource>
  237. </resources>
  238. <plugins>
  239. <plugin>
  240. <groupId>org.springframework.boot</groupId>
  241. <artifactId>spring-boot-maven-plugin</artifactId>
  242. <configuration>
  243. <fork>true</fork>
  244. </configuration>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-compiler-plugin</artifactId>
  249. <version>3.1</version>
  250. <configuration>
  251. <source>1.8</source>
  252. <target>1.8</target>
  253. <encoding>UTF-8</encoding>
  254. <compilerArgs>
  255. <arg>-parameters</arg>
  256. </compilerArgs>
  257. <!-- <compilerArguments>-->
  258. <!-- <verbose/>-->
  259. <!-- <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>-->
  260. <!-- <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>-->
  261. <!-- </compilerArguments>-->
  262. </configuration>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-resources-plugin</artifactId>
  267. <executions>
  268. <execution>
  269. <id>default-resources</id>
  270. <phase>validate</phase>
  271. <goals>
  272. <goal>copy-resources</goal>
  273. </goals>
  274. <configuration>
  275. <outputDirectory>target/classes</outputDirectory>
  276. <useDefaultDelimiters>false</useDefaultDelimiters>
  277. <delimiters>
  278. <delimiter>#</delimiter>
  279. </delimiters>
  280. <resources>
  281. <resource>
  282. <directory>src/main/resources/</directory>
  283. <filtering>true</filtering>
  284. </resource>
  285. <resource>
  286. <directory>src/main/resources.${spring.profiles.active}</directory>
  287. <filtering>false</filtering>
  288. </resource>
  289. </resources>
  290. <nonFilteredFileExtensions>
  291. <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
  292. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  293. <nonFilteredFileExtension>ttc</nonFilteredFileExtension>
  294. </nonFilteredFileExtensions>
  295. </configuration>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.apache.maven.plugins</groupId>
  301. <artifactId>maven-surefire-plugin</artifactId>
  302. <version>2.5</version>
  303. <configuration>
  304. <skipTests>true</skipTests>
  305. </configuration>
  306. </plugin>
  307. </plugins>
  308. </build>
  309. <profiles>
  310. <!--开发环境 -->
  311. <profile>
  312. <id>dev</id>
  313. <properties>
  314. <spring.profiles.active>dev</spring.profiles.active>
  315. </properties>
  316. <activation>
  317. <activeByDefault>true</activeByDefault>
  318. </activation>
  319. </profile>
  320. <!--生产环境 -->
  321. <profile>
  322. <id>pro</id>
  323. <properties>
  324. <spring.profiles.active>pro</spring.profiles.active>
  325. </properties>
  326. </profile>
  327. <profile>
  328. <id>uat</id>
  329. <properties>
  330. <spring.profiles.active>uat</spring.profiles.active>
  331. </properties>
  332. </profile>
  333. <profile>
  334. <id>uatbak</id>
  335. <properties>
  336. <spring.profiles.active>uatbak</spring.profiles.active>
  337. </properties>
  338. </profile>
  339. </profiles>
  340. </project>