pom.xml 7.8 KB

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