pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.hywa</groupId>
  7. <artifactId>forest-map</artifactId>
  8. <version>1.0</version>
  9. <packaging>jar</packaging>
  10. <name>forest-map</name>
  11. <description>Demo project for Spring Boot</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.0.2.RELEASE</version>
  16. <relativePath/> <!-- lookup parent from repository -->
  17. </parent>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <java.version>1.8</java.version>
  22. <shiro.version>1.3.2</shiro.version>
  23. <fastJson.version>1.2.47</fastJson.version>
  24. <mybatis.version>1.3.1</mybatis.version>
  25. <pagehelper.version>1.2.4</pagehelper.version>
  26. <jxl.version>2.6.12</jxl.version>
  27. <druid.version>1.1.6</druid.version>
  28. <common.version>2.5.0</common.version>
  29. <jackson.version>2.9.4</jackson.version>
  30. <docker.image.prefix>base_data</docker.image.prefix>
  31. <dockerfile-maven-plugin.version>1.3.6</dockerfile-maven-plugin.version>
  32. <commons-net.version>3.1</commons-net.version>
  33. <guava.version>23.0</guava.version>
  34. <swagger.version>2.8.0</swagger.version>
  35. <poi.version>3.14</poi.version>
  36. <poi.ooxml.version>3.14</poi.ooxml.version>
  37. <commons.io.version>2.5</commons.io.version>
  38. <!-- docker 配置 -->
  39. <docker.version>1</docker.version>
  40. <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
  41. </properties>
  42. <profiles>
  43. <profile>
  44. <id>dev</id>
  45. <!--默认激活当前配置-->
  46. <activation>
  47. <activeByDefault>true</activeByDefault>
  48. </activation>
  49. <properties>
  50. <profiles.active>dev</profiles.active>
  51. <!-- Docker 配置 -->
  52. <docker.dockerHost>http://172.16.90.199:2376</docker.dockerHost>
  53. <docker.serviceId>DockerHub</docker.serviceId>
  54. <docker.sslpath></docker.sslpath>
  55. <docker.image.version>1.0.0</docker.image.version>
  56. </properties>
  57. </profile>
  58. <profile>
  59. <id>pro</id>
  60. <properties>
  61. <profiles.active>pro</profiles.active>
  62. <!-- Docker 配置 -->
  63. <docker.dockerHost>http://172.16.90.199:2376</docker.dockerHost>
  64. <docker.serviceId>DockerHub</docker.serviceId>
  65. <!-- <docker.sslpath>../doc/ssl/pro</docker.sslpath> -->
  66. <docker.sslpath></docker.sslpath>
  67. <docker.image.version>${maven.build.timestamp}.${docker.version}</docker.image.version>
  68. </properties>
  69. </profile>
  70. </profiles>
  71. <dependencies>
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger2</artifactId>
  75. <version>${swagger.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.springfox</groupId>
  79. <artifactId>springfox-swagger-ui</artifactId>
  80. <version>${swagger.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>commons-net</groupId>
  84. <artifactId>commons-net</artifactId>
  85. <version>${commons-net.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.fasterxml.jackson.core</groupId>
  89. <artifactId>jackson-core</artifactId>
  90. <version>${jackson.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.fasterxml.jackson.core</groupId>
  94. <artifactId>jackson-annotations</artifactId>
  95. <version>${jackson.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-web</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-aop</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-data-redis</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-test</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>mysql</groupId>
  116. <artifactId>mysql-connector-java</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.apache.shiro</groupId>
  120. <artifactId>shiro-spring</artifactId>
  121. <version>${shiro.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.commons</groupId>
  125. <artifactId>commons-pool2</artifactId>
  126. <version>${common.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.slf4j</groupId>
  130. <artifactId>slf4j-api</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-devtools</artifactId>
  135. <optional>true</optional>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-starter-freemarker</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.mybatis.spring.boot</groupId>
  143. <artifactId>mybatis-spring-boot-starter</artifactId>
  144. <version>${mybatis.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>net.sourceforge.jexcelapi</groupId>
  148. <artifactId>jxl</artifactId>
  149. <version>${jxl.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.alibaba</groupId>
  153. <artifactId>fastjson</artifactId>
  154. <version>${fastJson.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.github.pagehelper</groupId>
  158. <artifactId>pagehelper-spring-boot-starter</artifactId>
  159. <version>${pagehelper.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.projectlombok</groupId>
  163. <artifactId>lombok</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.alibaba</groupId>
  167. <artifactId>druid</artifactId>
  168. <version>${druid.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.google.guava</groupId>
  172. <artifactId>guava</artifactId>
  173. <version>${guava.version}</version>
  174. </dependency>
  175. <!-- httpclient -->
  176. <dependency>
  177. <groupId>org.apache.httpcomponents</groupId>
  178. <artifactId>httpmime</artifactId>
  179. <version>4.5.3</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.httpcomponents</groupId>
  183. <artifactId>httpclient</artifactId>
  184. <version>4.5.9</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.springframework.amqp</groupId>
  188. <artifactId>spring-rabbit</artifactId>
  189. <version>2.0.2.RELEASE</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.poi</groupId>
  193. <artifactId>poi</artifactId>
  194. <version>${poi.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.poi</groupId>
  198. <artifactId>poi-ooxml</artifactId>
  199. <version>${poi.ooxml.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>commons-io</groupId>
  203. <artifactId>commons-io</artifactId>
  204. <version>${commons.io.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.belerweb</groupId>
  208. <artifactId>pinyin4j</artifactId>
  209. <version>2.5.0</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.opencsv</groupId>
  213. <artifactId>opencsv</artifactId>
  214. <version>4.4</version>
  215. </dependency>
  216. </dependencies>
  217. <build>
  218. <plugins>
  219. <plugin>
  220. <groupId>org.springframework.boot</groupId>
  221. <artifactId>spring-boot-maven-plugin</artifactId>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.mybatis.generator</groupId>
  225. <artifactId>mybatis-generator-maven-plugin</artifactId>
  226. <version>1.3.2</version>
  227. <configuration>
  228. <configurationFile>src/main/resources/mybatis-generator/generatorConfig.xml
  229. </configurationFile>
  230. <verbose>true</verbose>
  231. <overwrite>true</overwrite>
  232. </configuration>
  233. <executions>
  234. <execution>
  235. <id>Generate MyBatis Artifacts</id>
  236. <goals>
  237. <goal>generate</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. <dependencies>
  242. <dependency>
  243. <groupId>org.mybatis.generator</groupId>
  244. <artifactId>mybatis-generator-core</artifactId>
  245. <version>1.3.2</version>
  246. </dependency>
  247. </dependencies>
  248. </plugin>
  249. <plugin>
  250. <groupId>com.spotify</groupId>
  251. <artifactId>docker-maven-plugin</artifactId>
  252. <version>1.2.2</version>
  253. <configuration>
  254. <serverId>${docker.serviceId}</serverId>
  255. <dockerHost>${docker.dockerHost}</dockerHost>
  256. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  257. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  258. <resources>
  259. <resource>
  260. <targetPath>/</targetPath>
  261. <directory>${project.build.directory}</directory>
  262. <include>${project.build.finalName}.jar</include>
  263. </resource>
  264. </resources>
  265. </configuration>
  266. </plugin>
  267. </plugins>
  268. </build>
  269. </project>