pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <artifactId>ghjg-item-datashare-server</artifactId>
  6. <build>
  7. <finalName>ghThreeDataShare</finalName>
  8. <plugins>
  9. <plugin>
  10. <artifactId>maven-war-plugin</artifactId>
  11. <version>3.0.0</version>
  12. </plugin>
  13. <plugin>
  14. <artifactId>spring-boot-maven-plugin</artifactId>
  15. <configuration>
  16. <!-- 把本地jar 达成jar的时候加入-->
  17. <includeSystemScope>true</includeSystemScope>
  18. <mainClass>com.shanghaichengdi.ghjgitem.GhjgItemServerApplication</mainClass>
  19. </configuration>
  20. <executions>
  21. <execution>
  22. <goals>
  23. <goal>repackage</goal>
  24. </goals>
  25. </execution>
  26. </executions>
  27. <groupId>org.springframework.boot</groupId>
  28. <version>2.0.3.RELEASE</version>
  29. </plugin>
  30. <plugin>
  31. <artifactId>maven-dependency-plugin</artifactId>
  32. <executions>
  33. <execution>
  34. <configuration>
  35. <includeScope>system</includeScope>
  36. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib
  37. </outputDirectory>
  38. </configuration>
  39. <goals>
  40. <goal>copy-dependencies</goal>
  41. </goals>
  42. <id>copy-dependencies</id>
  43. <phase>compile</phase>
  44. </execution>
  45. </executions>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <version>2.10</version>
  48. </plugin>
  49. <plugin>
  50. <artifactId>kotlin-maven-plugin</artifactId>
  51. <configuration>
  52. <jvmTarget>1.8</jvmTarget>
  53. </configuration>
  54. <executions>
  55. <execution>
  56. <goals>
  57. <goal>compile</goal>
  58. </goals>
  59. <id>compile</id>
  60. <phase>compile</phase>
  61. </execution>
  62. <execution>
  63. <goals>
  64. <goal>test-compile</goal>
  65. </goals>
  66. <id>test-compile</id>
  67. <phase>test-compile</phase>
  68. </execution>
  69. </executions>
  70. <groupId>org.jetbrains.kotlin</groupId>
  71. <version>${kotlin.version}</version>
  72. </plugin>
  73. <plugin>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <configuration>
  76. <encoding>UTF-8</encoding>
  77. <source>1.8</source>
  78. <target>1.8</target>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>compile</goal>
  84. </goals>
  85. <id>compile</id>
  86. <phase>compile</phase>
  87. </execution>
  88. <execution>
  89. <goals>
  90. <goal>testCompile</goal>
  91. </goals>
  92. <id>testCompile</id>
  93. <phase>test-compile</phase>
  94. </execution>
  95. </executions>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <version>3.8.1</version>
  98. </plugin>
  99. </plugins>
  100. <resources>
  101. <resource>
  102. <directory>src/main/java</directory>
  103. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  104. <includes>
  105. <include>**/*.xml</include>
  106. </includes>
  107. </resource>
  108. <resource>
  109. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  110. <directory>${project.basedir}/src/main/resources</directory>
  111. <excludes>
  112. <exclude>profile/**</exclude>
  113. </excludes>
  114. </resource>
  115. <resource>
  116. <!-- 根据不同的环境,把对应文件夹里的配置文件打包-->
  117. <directory>${project.basedir}/src/main/resources/profile/${profiles.active}</directory>
  118. <filtering>true</filtering>
  119. </resource>
  120. </resources>
  121. </build>
  122. <dependencies>
  123. <dependency>
  124. <artifactId>spring-boot-starter</artifactId>
  125. <groupId>org.springframework.boot</groupId>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.github.jeffreyning</groupId>
  129. <artifactId>mybatisplus-plus</artifactId>
  130. <version>1.5.1-RELEASE</version>
  131. </dependency>
  132. <dependency>
  133. <artifactId>spring-boot-starter-test</artifactId>
  134. <groupId>org.springframework.boot</groupId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <artifactId>spring-boot-starter-web</artifactId>
  139. <groupId>org.springframework.boot</groupId>
  140. </dependency>
  141. <dependency>
  142. <artifactId>spring-boot-starter-data-redis</artifactId>
  143. <groupId>org.springframework.boot</groupId>
  144. </dependency>
  145. <dependency>
  146. <artifactId>spring-boot-starter-aop</artifactId>
  147. <groupId>org.springframework.boot</groupId>
  148. </dependency>
  149. <dependency>
  150. <artifactId>ghjg-item-datashare-common</artifactId>
  151. <groupId>com.shanghaichengdi</groupId>
  152. <version>1.0-SNAPSHOT</version>
  153. </dependency>
  154. <dependency>
  155. <artifactId>hutool-all</artifactId>
  156. <groupId>cn.hutool</groupId>
  157. </dependency>
  158. <dependency>
  159. <artifactId>jasypt-spring-boot-starter</artifactId>
  160. <groupId>com.github.ulisesbocchio</groupId>
  161. </dependency>
  162. <dependency>
  163. <artifactId>opencsv</artifactId>
  164. <groupId>com.opencsv</groupId>
  165. </dependency>
  166. <dependency>
  167. <artifactId>httpclient</artifactId>
  168. <groupId>org.apache.httpcomponents</groupId>
  169. </dependency>
  170. <dependency>
  171. <artifactId>mybatis-plus-boot-starter</artifactId>
  172. <groupId>com.baomidou</groupId>
  173. </dependency>
  174. <dependency>
  175. <artifactId>fastjson</artifactId>
  176. <groupId>com.alibaba</groupId>
  177. </dependency>
  178. <!-- <dependency>-->
  179. <!-- <artifactId>ojdbc6</artifactId>-->
  180. <!-- <groupId>com.oracle</groupId>-->
  181. <!-- </dependency>-->
  182. <dependency>
  183. <artifactId>ojdbc8</artifactId>
  184. <groupId>com.oracle.database.jdbc</groupId>
  185. </dependency>
  186. <!-- <dependency>-->
  187. <!-- <groupId>cn.com.kingbase</groupId>-->
  188. <!-- <artifactId>kingbase8</artifactId>-->
  189. <!-- </dependency>-->
  190. <dependency>
  191. <artifactId>springfox-swagger2</artifactId>
  192. <groupId>io.springfox</groupId>
  193. </dependency>
  194. <dependency>
  195. <artifactId>springfox-swagger-ui</artifactId>
  196. <groupId>io.springfox</groupId>
  197. </dependency>
  198. <dependency>
  199. <artifactId>pagehelper-spring-boot-starter</artifactId>
  200. <groupId>com.github.pagehelper</groupId>
  201. </dependency>
  202. <dependency>
  203. <artifactId>shiro-spring</artifactId>
  204. <groupId>org.apache.shiro</groupId>
  205. </dependency>
  206. <dependency>
  207. <artifactId>jjwt</artifactId>
  208. <groupId>io.jsonwebtoken</groupId>
  209. </dependency>
  210. <dependency>
  211. <artifactId>commons-lang3</artifactId>
  212. <groupId>org.apache.commons</groupId>
  213. </dependency>
  214. <dependency>
  215. <artifactId>easyexcel</artifactId>
  216. <groupId>com.alibaba</groupId>
  217. </dependency>
  218. <dependency>
  219. <artifactId>spring-boot-starter-validation</artifactId>
  220. <groupId>org.springframework.boot</groupId>
  221. </dependency>
  222. <dependency>
  223. <groupId>cn.smallbun.screw</groupId>
  224. <artifactId>screw-core</artifactId>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.zaxxer</groupId>
  228. <artifactId>HikariCP</artifactId>
  229. </dependency>
  230. </dependencies>
  231. <description>ghjg-item-server</description>
  232. <groupId>com.shanghaichengdi</groupId>
  233. <modelVersion>4.0.0</modelVersion>
  234. <name>ghThreeDataShare</name>
  235. <packaging>war</packaging>
  236. <parent>
  237. <artifactId>ghjg-item-datashare</artifactId>
  238. <groupId>com.shanghaichengdi</groupId>
  239. <version>1.0-SNAPSHOT</version>
  240. </parent>
  241. <profiles>
  242. <profile>
  243. <!-- 本地开发环境 -->
  244. <id>dev</id>
  245. <properties>
  246. <profiles.active>dev</profiles.active>
  247. </properties>
  248. </profile>
  249. <profile>
  250. <!-- 发布环境 -->
  251. <id>pro</id>
  252. <properties>
  253. <profiles.active>pro</profiles.active>
  254. </properties>
  255. </profile>
  256. <profile>
  257. <!-- 测试环境 -->
  258. <id>test</id>
  259. <properties>
  260. <profiles.active>test</profiles.active>
  261. </properties>
  262. </profile>
  263. </profiles>
  264. <properties>
  265. <java.version>1.8</java.version>
  266. <!--打包跳过test-->
  267. <skipTests>true</skipTests>
  268. </properties>
  269. <version>0.0.1-SNAPSHOT</version>
  270. </project>