pom.xml 12 KB

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