pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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.google.guava</groupId>
  22. <artifactId>guava</artifactId>
  23. <version>19.0</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>cn.afterturn</groupId>
  27. <artifactId>easypoi-base</artifactId>
  28. <version>4.0.0</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-devtools</artifactId>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.fasterxml.jackson.core</groupId>
  37. <artifactId>jackson-databind</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-web</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <!-- Spring Boot Mybatis 依赖 -->
  49. <dependency>
  50. <groupId>org.mybatis.spring.boot</groupId>
  51. <artifactId>mybatis-spring-boot-starter</artifactId>
  52. <version>1.2.0</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>tk.mybatis</groupId>
  56. <artifactId>mapper-spring-boot-starter</artifactId>
  57. <version>1.2.4</version>
  58. </dependency>
  59. <!-- MySQL 连接驱动依赖 -->
  60. <dependency>
  61. <groupId>mysql</groupId>
  62. <artifactId>mysql-connector-java</artifactId>
  63. <version>8.0.11</version>
  64. </dependency>
  65. <!-- 数据库连接池 -->
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>druid-spring-boot-starter</artifactId>
  69. <version>1.1.10</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba</groupId>
  73. <artifactId>fastjson</artifactId>
  74. <version>1.2.51</version>
  75. </dependency>
  76. <!-- For log4j -->
  77. <dependency>
  78. <groupId>log4j</groupId>
  79. <artifactId>log4j</artifactId>
  80. <version>1.2.17</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.commons</groupId>
  84. <artifactId>commons-lang3</artifactId>
  85. <version>3.3.2</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>eu.bitwalker</groupId>
  89. <artifactId>UserAgentUtils</artifactId>
  90. <version>1.21</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>commons-httpclient</groupId>
  94. <artifactId>commons-httpclient</artifactId>
  95. <version>3.1</version>
  96. </dependency>
  97. <!--redis依赖配置 -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-data-redis</artifactId>
  101. </dependency>
  102. <!--lombok依赖 -->
  103. <dependency>
  104. <groupId>org.projectlombok</groupId>
  105. <artifactId>lombok</artifactId>
  106. <optional>true</optional>
  107. </dependency>
  108. <dependency>
  109. <groupId>io.springfox</groupId>
  110. <artifactId>springfox-swagger2</artifactId>
  111. <version>2.6.1</version>
  112. <scope>compile</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>io.springfox</groupId>
  116. <artifactId>springfox-swagger-ui</artifactId>
  117. <version>2.6.1</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.github.xiaoymin</groupId>
  121. <artifactId>knife4j-spring-boot-starter</artifactId>
  122. <version>2.0.4</version>
  123. </dependency>
  124. <!-- ppi -->
  125. <dependency>
  126. <groupId>org.apache.poi</groupId>
  127. <artifactId>poi</artifactId>
  128. <version>3.17</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.poi</groupId>
  132. <artifactId>poi-ooxml</artifactId>
  133. <version>3.17</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>xerces</groupId>
  137. <artifactId>xercesImpl</artifactId>
  138. <version>2.9.0</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.alibaba</groupId>
  142. <artifactId>easyexcel</artifactId>
  143. <version>2.0.2</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.github.pagehelper</groupId>
  147. <artifactId>pagehelper-spring-boot-starter</artifactId>
  148. <version>1.2.5</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.springframework</groupId>
  152. <artifactId>spring-aop</artifactId>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.springframework</groupId>
  156. <artifactId>spring-aspects</artifactId>
  157. </dependency>
  158. <!--okHttp-->
  159. <dependency>
  160. <groupId>com.squareup.okhttp3</groupId>
  161. <artifactId>okhttp</artifactId>
  162. <version>4.9.2</version>
  163. </dependency>
  164. <!--katolin-->
  165. <dependency>
  166. <groupId>org.jetbrains.kotlin</groupId>
  167. <artifactId>kotlin-stdlib</artifactId>
  168. <version>1.3.70</version>
  169. </dependency>
  170. </dependencies>
  171. <dependencyManagement>
  172. <dependencies>
  173. <dependency>
  174. <groupId>org.springframework.cloud</groupId>
  175. <artifactId>spring-cloud-dependencies</artifactId>
  176. <version>${spring-cloud.version}</version>
  177. <type>pom</type>
  178. <scope>import</scope>
  179. </dependency>
  180. </dependencies>
  181. </dependencyManagement>
  182. <build>
  183. <finalName>reportservice</finalName>
  184. <resources>
  185. <resource>
  186. <directory>src/main/java</directory>
  187. <includes>
  188. <include>**/*.yml</include>
  189. <include>**/*.properties</include>
  190. <include>**/*.xml</include>
  191. </includes>
  192. <filtering>false</filtering>
  193. </resource>
  194. <resource>
  195. <directory>src/main/resources</directory>
  196. <includes>
  197. <include>**/*.yml</include>
  198. <include>**/*.properties</include>
  199. <include>**/*.xml</include>
  200. </includes>
  201. <filtering>false</filtering>
  202. </resource>
  203. <resource>
  204. <directory>lib</directory>
  205. <targetPath>BOOT-INF/lib/</targetPath>
  206. <includes>
  207. <include>**/*.jar</include>
  208. </includes>
  209. <filtering>false</filtering>
  210. </resource>
  211. </resources>
  212. <plugins>
  213. <plugin>
  214. <groupId>org.springframework.boot</groupId>
  215. <artifactId>spring-boot-maven-plugin</artifactId>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-compiler-plugin</artifactId>
  220. <version>3.1</version>
  221. <configuration>
  222. <source>1.8</source>
  223. <target>1.8</target>
  224. <encoding>UTF-8</encoding>
  225. <compilerArguments>
  226. <verbose/>
  227. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  228. <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
  229. </compilerArguments>
  230. </configuration>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-resources-plugin</artifactId>
  235. <executions>
  236. <execution>
  237. <id>default-resources</id>
  238. <phase>validate</phase>
  239. <goals>
  240. <goal>copy-resources</goal>
  241. </goals>
  242. <configuration>
  243. <outputDirectory>target/classes</outputDirectory>
  244. <useDefaultDelimiters>false</useDefaultDelimiters>
  245. <delimiters>
  246. <delimiter>#</delimiter>
  247. </delimiters>
  248. <resources>
  249. <resource>
  250. <directory>src/main/resources/</directory>
  251. <filtering>true</filtering>
  252. </resource>
  253. <resource>
  254. <directory>src/main/resources.${spring.profiles.active}</directory>
  255. <filtering>false</filtering>
  256. </resource>
  257. </resources>
  258. <nonFilteredFileExtensions>
  259. <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
  260. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  261. <nonFilteredFileExtension>ttc</nonFilteredFileExtension>
  262. </nonFilteredFileExtensions>
  263. </configuration>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-surefire-plugin</artifactId>
  270. <version>2.5</version>
  271. <configuration>
  272. <skipTests>true</skipTests>
  273. </configuration>
  274. </plugin>
  275. </plugins>
  276. </build>
  277. <profiles>
  278. <!--开发环境 -->
  279. <profile>
  280. <id>dev</id>
  281. <properties>
  282. <spring.profiles.active>dev</spring.profiles.active>
  283. </properties>
  284. </profile>
  285. <!--生产环境 -->
  286. <profile>
  287. <id>pro</id>
  288. <properties>
  289. <spring.profiles.active>pro</spring.profiles.active>
  290. </properties>
  291. </profile>
  292. <profile>
  293. <id>uat</id>
  294. <properties>
  295. <spring.profiles.active>uat</spring.profiles.active>
  296. </properties>
  297. <activation>
  298. <activeByDefault>true</activeByDefault>
  299. </activation>
  300. </profile>
  301. </profiles>
  302. </project>