pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. <groupId>com.anji-plus.sp</groupId>
  6. <artifactId>sp-parent</artifactId>
  7. <version>1.0.0</version>
  8. <name>sp-parent</name>
  9. <packaging>pom</packaging>
  10. <description>移动服务平台</description>
  11. <modules>
  12. <module>sp-common</module>
  13. <module>sp-auth</module>
  14. <module>sp-notice</module>
  15. <module>sp-version</module>
  16. <module>sp-app</module>
  17. <module>sp-push</module>
  18. </modules>
  19. <properties>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22. <app.sp.version>1.0.0</app.sp.version>
  23. <java.version>1.8</java.version>
  24. <spring.boot.version>2.2.5.RELEASE</spring.boot.version>
  25. <pagehelper.spring.boot.starter.version>1.2.13</pagehelper.spring.boot.starter.version>
  26. <fastjson.version>1.2.70</fastjson.version>
  27. <druid.version>1.1.14</druid.version>
  28. <commons.io.version>2.5</commons.io.version>
  29. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  30. <bitwalker.version>1.19</bitwalker.version>
  31. <jwt.version>0.9.0</jwt.version>
  32. <swagger.version>2.9.2</swagger.version>
  33. <poi.version>3.17</poi.version>
  34. <oshi.version>3.9.1</oshi.version>
  35. <velocity.version>1.7</velocity.version>
  36. <apk.parser.version>2.6.10</apk.parser.version>
  37. <redisson.version>3.6.5</redisson.version>
  38. <mybatis.plus.boot.starter.version>3.3.2</mybatis.plus.boot.starter.version>
  39. </properties>
  40. <dependencyManagement>
  41. <dependencies>
  42. <!-- SpringBoot的依赖配置-->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-dependencies</artifactId>
  46. <version>${spring.boot.version}</version>
  47. <type>pom</type>
  48. <scope>import</scope>
  49. </dependency>
  50. </dependencies>
  51. </dependencyManagement>
  52. <dependencies>
  53. <!-- SpringBoot 核心包 -->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter</artifactId>
  57. </dependency>
  58. <!-- apk解析包 -->
  59. <dependency>
  60. <groupId>net.dongliu</groupId>
  61. <artifactId>apk-parser</artifactId>
  62. <version>${apk.parser.version}</version>
  63. </dependency>
  64. <!-- 解析客户端操作系统、浏览器等 -->
  65. <dependency>
  66. <groupId>eu.bitwalker</groupId>
  67. <artifactId>UserAgentUtils</artifactId>
  68. <version>${bitwalker.version}</version>
  69. </dependency>
  70. <!-- SpringBoot 测试 -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>org.junit.vintage</groupId>
  78. <artifactId>junit-vintage-engine</artifactId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <!-- 极光推送开始-->
  83. <dependency>
  84. <groupId>cn.jpush.api</groupId>
  85. <artifactId>jpush-client</artifactId>
  86. <version>3.4.7</version>
  87. </dependency>
  88. <!-- 极光推送结束-->
  89. <dependency>
  90. <groupId>org.conscrypt</groupId>
  91. <artifactId>conscrypt-openjdk-uber</artifactId>
  92. <version>2.1.0</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.httpcomponents</groupId>
  96. <artifactId>httpclient</artifactId>
  97. <version>4.5.12</version>
  98. </dependency>
  99. <!-- apache common封装好的HttpClient-->
  100. <dependency>
  101. <groupId>commons-httpclient</groupId>
  102. <artifactId>commons-httpclient</artifactId>
  103. <version>3.1</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.httpcomponents</groupId>
  107. <artifactId>httpmime</artifactId>
  108. <version>4.5.12</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.googlecode.json-simple</groupId>
  112. <artifactId>json-simple</artifactId>
  113. <version>1.1.1</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.httpcomponents</groupId>
  117. <artifactId>httpcore</artifactId>
  118. <version>4.4.13</version>
  119. </dependency>
  120. <!-- SpringBoot 拦截器 -->
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-aop</artifactId>
  124. </dependency>
  125. <!-- SpringBoot Web容器 -->
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-web</artifactId>
  129. </dependency>
  130. <!-- spring security 安全认证 -->
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-security</artifactId>
  134. </dependency>
  135. <!-- redis 缓存操作 -->
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-data-redis</artifactId>
  139. </dependency>
  140. <!-- redisson 分布式锁-->
  141. <dependency>
  142. <groupId>org.redisson</groupId>
  143. <artifactId>redisson</artifactId>
  144. <version>${redisson.version}</version>
  145. </dependency>
  146. <!-- pool 对象池 -->
  147. <dependency>
  148. <groupId>org.apache.commons</groupId>
  149. <artifactId>commons-pool2</artifactId>
  150. </dependency>
  151. <!--常用工具类 -->
  152. <dependency>
  153. <groupId>org.apache.commons</groupId>
  154. <artifactId>commons-lang3</artifactId>
  155. </dependency>
  156. <!-- Mysql驱动包 -->
  157. <dependency>
  158. <groupId>mysql</groupId>
  159. <artifactId>mysql-connector-java</artifactId>
  160. <scope>runtime</scope>
  161. </dependency>
  162. <!-- SpringBoot集成mybatis框架 -->
  163. <dependency>
  164. <groupId>com.baomidou</groupId>
  165. <artifactId>mybatis-plus-boot-starter</artifactId>
  166. <version>${mybatis.plus.boot.starter.version}</version>
  167. </dependency>
  168. <!-- pagehelper 分页插件 -->
  169. <dependency>
  170. <groupId>com.github.pagehelper</groupId>
  171. <artifactId>pagehelper-spring-boot-starter</artifactId>
  172. <version>${pagehelper.spring.boot.starter.version}</version>
  173. </dependency>
  174. <!--阿里数据库连接池 -->
  175. <!-- <dependency>-->
  176. <!-- <groupId>com.alibaba</groupId>-->
  177. <!-- <artifactId>druid-spring-boot-starter</artifactId>-->
  178. <!-- <version>${druid.version}</version>-->
  179. <!-- </dependency>-->
  180. <dependency>
  181. <groupId>com.alibaba</groupId>
  182. <artifactId>druid</artifactId>
  183. <version>1.1.22</version>
  184. </dependency>
  185. <!--io常用工具类 -->
  186. <dependency>
  187. <groupId>commons-io</groupId>
  188. <artifactId>commons-io</artifactId>
  189. <version>${commons.io.version}</version>
  190. </dependency>
  191. <!--文件上传工具类 -->
  192. <dependency>
  193. <groupId>commons-fileupload</groupId>
  194. <artifactId>commons-fileupload</artifactId>
  195. <version>${commons.fileupload.version}</version>
  196. </dependency>
  197. <!-- 阿里JSON解析器 -->
  198. <dependency>
  199. <groupId>com.alibaba</groupId>
  200. <artifactId>fastjson</artifactId>
  201. <version>${fastjson.version}</version>
  202. </dependency>
  203. <!--Spring框架基本的核心工具-->
  204. <dependency>
  205. <groupId>org.springframework</groupId>
  206. <artifactId>spring-context-support</artifactId>
  207. </dependency>
  208. <!--Token生成与解析-->
  209. <dependency>
  210. <groupId>io.jsonwebtoken</groupId>
  211. <artifactId>jjwt</artifactId>
  212. <version>${jwt.version}</version>
  213. </dependency>
  214. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  215. <dependency>
  216. <groupId>io.swagger</groupId>
  217. <artifactId>swagger-annotations</artifactId>
  218. <version>1.5.21</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>io.swagger</groupId>
  222. <artifactId>swagger-models</artifactId>
  223. <version>1.5.21</version>
  224. </dependency>
  225. <!-- swagger2-->
  226. <dependency>
  227. <groupId>io.springfox</groupId>
  228. <artifactId>springfox-swagger2</artifactId>
  229. <version>${swagger.version}</version>
  230. <exclusions>
  231. <exclusion>
  232. <groupId>io.swagger</groupId>
  233. <artifactId>swagger-annotations</artifactId>
  234. </exclusion>
  235. <exclusion>
  236. <groupId>io.swagger</groupId>
  237. <artifactId>swagger-models</artifactId>
  238. </exclusion>
  239. </exclusions>
  240. </dependency>
  241. <!-- swagger2-UI-->
  242. <dependency>
  243. <groupId>io.springfox</groupId>
  244. <artifactId>springfox-swagger-ui</artifactId>
  245. <version>${swagger.version}</version>
  246. </dependency>
  247. <!--通过ip查询地址-->
  248. <dependency>
  249. <groupId>org.lionsoul</groupId>
  250. <artifactId>ip2region</artifactId>
  251. <version>1.7</version>
  252. </dependency>
  253. <!-- lombok -->
  254. <dependency>
  255. <groupId>org.projectlombok</groupId>
  256. <artifactId>lombok</artifactId>
  257. <version>1.18.12</version>
  258. <scope>provided</scope>
  259. </dependency>
  260. <dependency>
  261. <groupId>com.anji-plus</groupId>
  262. <artifactId>spring-boot-starter-captcha</artifactId>
  263. <version>1.2.9</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.springframework.boot</groupId>
  267. <artifactId>spring-boot-starter-amqp</artifactId>
  268. </dependency>
  269. </dependencies>
  270. <profiles>
  271. <profile>
  272. <id>dev</id>
  273. <properties>
  274. <spring.profiles.active>dev</spring.profiles.active>
  275. </properties>
  276. <activation>
  277. <activeByDefault>true</activeByDefault>
  278. </activation>
  279. </profile>
  280. </profiles>
  281. <build>
  282. <plugins>
  283. <plugin>
  284. <groupId>org.apache.maven.plugins</groupId>
  285. <artifactId>maven-compiler-plugin</artifactId>
  286. <version>3.3</version>
  287. <configuration>
  288. <source>1.8</source>
  289. <target>1.8</target>
  290. <encoding>${project.build.sourceEncoding}</encoding>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-resources-plugin</artifactId>
  296. <version>2.4</version>
  297. <configuration>
  298. <encoding>${project.build.sourceEncoding}</encoding>
  299. </configuration>
  300. </plugin>
  301. </plugins>
  302. </build>
  303. </project>