pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.shanghaichengdi</groupId>
  8. <artifactId>ghjg-item</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. </parent>
  11. <groupId>com.shanghaichengdi</groupId>
  12. <artifactId>ghjg-item-server</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>boatFlowServer</name>
  15. <packaging>war</packaging>
  16. <description>ghjg-item-server</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-test</artifactId>
  28. <scope>test</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-data-redis</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-aop</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.shanghaichengdi</groupId>
  44. <artifactId>ghjg-item-common</artifactId>
  45. <version>1.0-SNAPSHOT</version>
  46. </dependency>
  47. <!-- form数据验证依赖 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-validation</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>cn.hutool</groupId>
  54. <artifactId>hutool-all</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.github.ulisesbocchio</groupId>
  58. <artifactId>jasypt-spring-boot-starter</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.opencsv</groupId>
  62. <artifactId>opencsv</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.httpcomponents</groupId>
  66. <artifactId>httpclient</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.baomidou</groupId>
  70. <artifactId>mybatis-plus-boot-starter</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.alibaba</groupId>
  74. <artifactId>fastjson</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.oracle</groupId>
  78. <artifactId>ojdbc6</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>io.springfox</groupId>
  82. <artifactId>springfox-swagger2</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>io.springfox</groupId>
  86. <artifactId>springfox-swagger-ui</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.github.pagehelper</groupId>
  90. <artifactId>pagehelper-spring-boot-starter</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.shiro</groupId>
  94. <artifactId>shiro-spring</artifactId>
  95. </dependency>
  96. <!-- <dependency>-->
  97. <!-- <groupId>io.jsonwebtoken</groupId>-->
  98. <!-- <artifactId>jjwt</artifactId>-->
  99. <!-- </dependency>-->
  100. <dependency>
  101. <groupId>org.apache.commons</groupId>
  102. <artifactId>commons-lang3</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>e-iceblue</groupId>
  106. <artifactId>spire.xls</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.itextpdf</groupId>
  110. <artifactId>itextpdf</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.itextpdf</groupId>
  114. <artifactId>itext-asian</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.poi</groupId>
  118. <artifactId>poi</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.deepoove</groupId>
  122. <artifactId>poi-tl</artifactId>
  123. <version>1.12.2</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.poi</groupId>
  127. <artifactId>poi-ooxml</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.poi</groupId>
  131. <artifactId>poi-scratchpad</artifactId>
  132. <version>3.17</version>
  133. </dependency>
  134. <!-- <dependency>-->
  135. <!-- <groupId>com.github.junrar</groupId>-->
  136. <!-- <artifactId>junrar</artifactId>-->
  137. <!-- </dependency>-->
  138. <!-- <dependency>-->
  139. <!-- <groupId>net.sf.sevenzipjbinding</groupId>-->
  140. <!-- <artifactId>sevenzipjbinding</artifactId>-->
  141. <!-- </dependency>-->
  142. <!-- <dependency>-->
  143. <!-- <groupId>net.sf.sevenzipjbinding</groupId>-->
  144. <!-- <artifactId>sevenzipjbinding-all-platforms</artifactId>-->
  145. <!-- </dependency>-->
  146. <dependency>
  147. <groupId>cn.afterturn</groupId>
  148. <artifactId>easypoi-base</artifactId>
  149. <version>4.5.0</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>cn.afterturn</groupId>
  153. <artifactId>easypoi-web</artifactId>
  154. <version>4.5.0</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>cn.afterturn</groupId>
  158. <artifactId>easypoi-annotation</artifactId>
  159. <version>4.5.0</version>
  160. </dependency>
  161. <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  162. <dependency>
  163. <groupId>commons-io</groupId>
  164. <artifactId>commons-io</artifactId>
  165. <version>2.15.1</version>
  166. </dependency>
  167. </dependencies>
  168. <profiles>
  169. <profile>
  170. <!-- 本地开发环境 -->
  171. <id>dev</id>
  172. <properties>
  173. <profiles.active>dev</profiles.active>
  174. </properties>
  175. </profile>
  176. <profile>
  177. <!-- 发布环境 -->
  178. <id>pro</id>
  179. <properties>
  180. <profiles.active>pro</profiles.active>
  181. </properties>
  182. </profile>
  183. <profile>
  184. <!-- 文件服务器 -->
  185. <id>file</id>
  186. <properties>
  187. <profiles.active>file</profiles.active>
  188. </properties>
  189. </profile>
  190. </profiles>
  191. <build>
  192. <finalName>waterCheckExport</finalName>
  193. <plugins>
  194. <plugin>
  195. <artifactId>maven-war-plugin</artifactId>
  196. <version>3.0.0</version>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.springframework.boot</groupId>
  200. <artifactId>spring-boot-maven-plugin</artifactId>
  201. <version>2.0.3.RELEASE</version>
  202. <configuration>
  203. <!-- 把本地jar 达成jar的时候加入-->
  204. <includeSystemScope>true</includeSystemScope>
  205. <mainClass>com.shanghaichengdi.ghjgitem.GhjgItemServerApplication</mainClass>
  206. </configuration>
  207. <executions>
  208. <execution>
  209. <goals>
  210. <goal>repackage</goal>
  211. </goals>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-dependency-plugin</artifactId>
  218. <version>2.10</version>
  219. <executions>
  220. <execution>
  221. <id>copy-dependencies</id>
  222. <phase>compile</phase>
  223. <goals>
  224. <goal>copy-dependencies</goal>
  225. </goals>
  226. <configuration>
  227. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib
  228. </outputDirectory>
  229. <includeScope>system</includeScope>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.jetbrains.kotlin</groupId>
  236. <artifactId>kotlin-maven-plugin</artifactId>
  237. <version>${kotlin.version}</version>
  238. <executions>
  239. <execution>
  240. <id>compile</id>
  241. <phase>compile</phase>
  242. <goals>
  243. <goal>compile</goal>
  244. </goals>
  245. </execution>
  246. <execution>
  247. <id>test-compile</id>
  248. <phase>test-compile</phase>
  249. <goals>
  250. <goal>test-compile</goal>
  251. </goals>
  252. </execution>
  253. </executions>
  254. <configuration>
  255. <jvmTarget>1.8</jvmTarget>
  256. </configuration>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-compiler-plugin</artifactId>
  261. <version>3.8.1</version>
  262. <executions>
  263. <execution>
  264. <id>compile</id>
  265. <phase>compile</phase>
  266. <goals>
  267. <goal>compile</goal>
  268. </goals>
  269. </execution>
  270. <execution>
  271. <id>testCompile</id>
  272. <phase>test-compile</phase>
  273. <goals>
  274. <goal>testCompile</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. <configuration>
  279. <source>1.8</source>
  280. <target>1.8</target>
  281. <encoding>UTF-8</encoding>
  282. </configuration>
  283. </plugin>
  284. </plugins>
  285. <resources>
  286. <resource>
  287. <directory>src/main/java</directory>
  288. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  289. <includes>
  290. <include>**/*.xml</include>
  291. </includes>
  292. </resource>
  293. <resource>
  294. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  295. <directory>${project.basedir}/src/main/resources</directory>
  296. <excludes>
  297. <exclude>profile/**</exclude>
  298. </excludes>
  299. </resource>
  300. <resource>
  301. <!-- 根据不同的环境,把对应文件夹里的配置文件打包-->
  302. <directory>${project.basedir}/src/main/resources/profile/${profiles.active}</directory>
  303. <filtering>true</filtering>
  304. </resource>
  305. </resources>
  306. </build>
  307. </project>