pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.chy</groupId>
  12. <artifactId>borrow</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <packaging>war</packaging>
  15. <name>borrow</name>
  16. <description>borrow managemanet</description>
  17. <properties>
  18. <encoding>UTF-8</encoding>
  19. <java.version>1.8</java.version>
  20. <commons-lang3.version>3.4</commons-lang3.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. <!-- <exclusions>-->
  27. <!-- <exclusion>-->
  28. <!-- <groupId>org.springframework.boot</groupId>-->
  29. <!-- <artifactId>spring-boot-starter-logging</artifactId>-->
  30. <!-- </exclusion>-->
  31. <!-- </exclusions>-->
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-freemarker</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-aop</artifactId>
  40. </dependency>
  41. <!--lombok 在实体类上面添加@Data 可以自动生成get、set、toString等方法-->
  42. <dependency>
  43. <groupId>org.projectlombok</groupId>
  44. <artifactId>lombok</artifactId>
  45. <version>1.16.10</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-tomcat</artifactId>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-test</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <!-- 瀚高 -->
  58. <dependency>
  59. <groupId>com.highgo</groupId>
  60. <artifactId>HgdbJdbc</artifactId>
  61. <version>6.0.5.jre8</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.jetbrains</groupId>
  65. <artifactId>annotations</artifactId>
  66. <version>19.0.0</version>
  67. <scope>compile</scope>
  68. </dependency>
  69. <!-- <dependency>-->
  70. <!-- <groupId>com.baomidou</groupId>-->
  71. <!-- <artifactId>mybatis-plus</artifactId>-->
  72. <!-- <version>3.5.1</version>-->
  73. <!-- </dependency>-->
  74. <dependency>
  75. <groupId>com.baomidou</groupId>
  76. <artifactId>mybatis-plus-boot-starter</artifactId>
  77. <version>3.4.1</version>
  78. </dependency>
  79. <!--数据库连接驱动 连接配置修改时间-->
  80. <!--模板引擎-->
  81. <dependency>
  82. <groupId>org.apache.velocity</groupId>
  83. <artifactId>velocity-engine-core</artifactId>
  84. <version>2.2</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.baomidou</groupId>
  88. <artifactId>mybatis-plus-generator</artifactId>
  89. <version>3.3.0</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.alibaba</groupId>
  93. <artifactId>fastjson</artifactId>
  94. <version>1.2.68</version>
  95. </dependency>
  96. <!-- <dependency>-->
  97. <!-- <groupId>io.springfox</groupId>-->
  98. <!-- <artifactId>springfox-boot-starter</artifactId>-->
  99. <!-- <version>3.0.0</version>-->
  100. <!-- </dependency>-->
  101. <dependency>
  102. <groupId>io.springfox</groupId>
  103. <artifactId>springfox-swagger-ui</artifactId>
  104. <version>2.9.2</version>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>io.swagger</groupId>
  109. <artifactId>swagger-annotations</artifactId>
  110. <version>1.5.20</version>
  111. <scope>compile</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.springfox</groupId>
  115. <artifactId>springfox-swagger2</artifactId>
  116. <version>2.9.2</version>
  117. <scope>compile</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.postgresql</groupId>
  121. <artifactId>postgresql</artifactId>
  122. <scope>runtime</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.github.pagehelper</groupId>
  126. <artifactId>pagehelper-spring-boot-starter</artifactId>
  127. <version>1.2.13</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>junit</groupId>
  131. <artifactId>junit</artifactId>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.shanghaigeography</groupId>
  136. <artifactId>Infrastructure</artifactId>
  137. <version>1.1-SNAPSHOT</version>
  138. <scope>system</scope>
  139. <systemPath>${project.basedir}/libs/Infrastructure-1.1-SNAPSHOT.jar</systemPath>
  140. </dependency>
  141. <dependency>
  142. <groupId>cn.hutool</groupId>
  143. <artifactId>hutool-all</artifactId>
  144. <version>5.5.2</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-io</groupId>
  148. <artifactId>commons-io</artifactId>
  149. <version>2.6</version>
  150. </dependency>
  151. <!--工具-->
  152. <dependency>
  153. <groupId>commons-beanutils</groupId>
  154. <artifactId>commons-beanutils</artifactId>
  155. <version>1.9.4</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.commons</groupId>
  159. <artifactId>commons-lang3</artifactId>
  160. <version>${commons-lang3.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>cn.afterturn</groupId>
  164. <artifactId>easypoi-base</artifactId>
  165. <version>4.1.0</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.jfree</groupId>
  169. <artifactId>jcommon</artifactId>
  170. <version>1.0.24</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.jfree</groupId>
  174. <artifactId>jfreechart</artifactId>
  175. <version>1.5.0</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>net.sourceforge.javacsv</groupId>
  179. <artifactId>javacsv</artifactId>
  180. <version>2.0</version>
  181. </dependency>
  182. <!-- https://mvnrepository.com/artifact/com.opencsv/opencsv -->
  183. <dependency>
  184. <groupId>com.opencsv</groupId>
  185. <artifactId>opencsv</artifactId>
  186. <version>3.8</version>
  187. </dependency>
  188. </dependencies>
  189. <profiles>
  190. <profile>
  191. <!-- 本地开发环境 -->
  192. <id>dev</id>
  193. <properties>
  194. <profiles.active>dev</profiles.active>
  195. </properties>
  196. <activation>
  197. <!-- 设置默认激活这个配置 -->
  198. <activeByDefault>true</activeByDefault>
  199. </activation>
  200. </profile>
  201. <!-- <profile>-->
  202. <!-- &lt;!&ndash; 发布环境 &ndash;&gt;-->
  203. <!-- <id>pro-file</id>-->
  204. <!-- <properties>-->
  205. <!-- <profiles.active>pro/fileServer</profiles.active>-->
  206. <!-- </properties>-->
  207. <!-- </profile>-->
  208. <!-- <profile>-->
  209. <!-- &lt;!&ndash; 发布环境 &ndash;&gt;-->
  210. <!-- <id>pro-service</id>-->
  211. <!-- <properties>-->
  212. <!-- <profiles.active>pro/serviceServer</profiles.active>-->
  213. <!-- </properties>-->
  214. <!-- <activation>-->
  215. <!-- &lt;!&ndash; 设置默认激活这个配置 &ndash;&gt;-->
  216. <!-- <activeByDefault>true</activeByDefault>-->
  217. <!-- </activation>-->
  218. <!-- </profile>-->
  219. <profile>
  220. <!-- 测试环境 -->
  221. <id>test</id>
  222. <properties>
  223. <profiles.active>test</profiles.active>
  224. </properties>
  225. </profile>
  226. </profiles>
  227. <build>
  228. <finalName>borrow-service</finalName>
  229. <resources>
  230. <resource>
  231. <directory>src/main/java</directory>
  232. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  233. <includes>
  234. <include>**/*.xml</include>
  235. </includes>
  236. </resource>
  237. <resource>
  238. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  239. <directory>${project.basedir}/src/main/resources</directory>
  240. <excludes>
  241. <exclude>profile/**</exclude>
  242. </excludes>
  243. </resource>
  244. <resource>
  245. <!-- 根据不同的环境,把对应文件夹里的配置文件打包-->
  246. <directory>${project.basedir}/src/main/resources/profile/${profiles.active}</directory>
  247. <filtering>true</filtering>
  248. </resource>
  249. </resources>
  250. <plugins>
  251. <plugin>
  252. <groupId>org.springframework.boot</groupId>
  253. <artifactId>spring-boot-maven-plugin</artifactId>
  254. <configuration>
  255. <excludes>
  256. <exclude>
  257. <groupId>org.projectlombok</groupId>
  258. <artifactId>lombok</artifactId>
  259. </exclude>
  260. </excludes>
  261. <mainClass>com.chy.borrow.BorrowWebApplication</mainClass>
  262. </configuration>
  263. </plugin>
  264. <!-- <plugin>-->
  265. <!-- <artifactId>maven-war-plugin</artifactId>-->
  266. <!-- <version>3.0.0</version>-->
  267. <!-- </plugin>-->
  268. <!-- <plugin>-->
  269. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  270. <!-- <artifactId>maven-compiler-plugin</artifactId>-->
  271. <!-- <version>3.8.1</version>-->
  272. <!-- <configuration>-->
  273. <!-- <source>1.8</source>-->
  274. <!-- <target>1.8</target>-->
  275. <!-- <encoding>UTF-8</encoding>-->
  276. <!-- </configuration>-->
  277. <!-- </plugin>-->
  278. </plugins>
  279. </build>
  280. </project>