pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. <parent>
  6. <artifactId>warewms</artifactId>
  7. <groupId>com.warewms</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>warewms-ams</artifactId>
  13. <groupId>com.warewms</groupId>
  14. <version>1.0.0</version>
  15. <description>
  16. ams服务入口
  17. </description>
  18. <properties>
  19. <project.name>${project.artifactId}-release-${project.version}</project.name>
  20. <project.build.libUrl>${project.build.directory}/${project.name}/${project.name}/lib</project.build.libUrl>
  21. </properties>
  22. <dependencies>
  23. <!-- spring-boot-devtools -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-devtools</artifactId>
  27. <optional>true</optional> <!-- 表示依赖不会传递 -->
  28. </dependency>
  29. <!-- swagger3-->
  30. <dependency>
  31. <groupId>io.springfox</groupId>
  32. <artifactId>springfox-boot-starter</artifactId>
  33. </dependency>
  34. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  35. <dependency>
  36. <groupId>io.swagger</groupId>
  37. <artifactId>swagger-models</artifactId>
  38. <version>1.6.2</version>
  39. </dependency>
  40. <!-- Mysql驱动包 -->
  41. <dependency>
  42. <groupId>mysql</groupId>
  43. <artifactId>mysql-connector-java</artifactId>
  44. </dependency>
  45. <!-- 单元测试 -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-test</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>junit</groupId>
  52. <artifactId>junit</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <!-- 定时任务 -->
  56. <dependency>
  57. <groupId>org.quartz-scheduler</groupId>
  58. <artifactId>quartz</artifactId>
  59. <exclusions>
  60. <exclusion>
  61. <groupId>com.mchange</groupId>
  62. <artifactId>c3p0</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <!--velocity代码生成使用模板 -->
  67. <dependency>
  68. <groupId>org.apache.velocity</groupId>
  69. <artifactId>velocity-engine-core</artifactId>
  70. </dependency>
  71. <!-- collections工具类 -->
  72. <dependency>
  73. <groupId>commons-collections</groupId>
  74. <artifactId>commons-collections</artifactId>
  75. </dependency>
  76. <!-- SpringBoot Web容器 -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-web</artifactId>
  80. </dependency>
  81. <!-- SpringBoot 拦截器 -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-aop</artifactId>
  85. <exclusions>
  86. <exclusion>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter</artifactId>
  89. </exclusion>
  90. </exclusions>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework</groupId>
  94. <artifactId>spring-jdbc</artifactId>
  95. <version>5.3.16</version>
  96. </dependency>
  97. <!-- 阿里数据库连接池 -->
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>druid-spring-boot-starter</artifactId>
  101. </dependency>
  102. <!-- 验证码 -->
  103. <dependency>
  104. <groupId>com.github.penggle</groupId>
  105. <artifactId>kaptcha</artifactId>
  106. <exclusions>
  107. <exclusion>
  108. <artifactId>javax.servlet-api</artifactId>
  109. <groupId>javax.servlet</groupId>
  110. </exclusion>
  111. </exclusions>
  112. </dependency>
  113. <!-- 获取系统信息 -->
  114. <dependency>
  115. <groupId>com.github.oshi</groupId>
  116. <artifactId>oshi-core</artifactId>
  117. </dependency>
  118. <!-- Spring框架基本的核心工具 -->
  119. <dependency>
  120. <groupId>org.springframework</groupId>
  121. <artifactId>spring-context-support</artifactId>
  122. </dependency>
  123. <!-- SpringWeb模块 -->
  124. <dependency>
  125. <groupId>org.springframework</groupId>
  126. <artifactId>spring-web</artifactId>
  127. </dependency>
  128. <!-- spring security 安全认证 -->
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-starter-security</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.baomidou</groupId>
  135. <artifactId>mybatis-plus-boot-starter</artifactId>
  136. </dependency>
  137. <!-- pagehelper 分页插件 -->
  138. <dependency>
  139. <groupId>com.github.pagehelper</groupId>
  140. <artifactId>pagehelper-spring-boot-starter</artifactId>
  141. <exclusions>
  142. <exclusion>
  143. <groupId>org.mybatis</groupId>
  144. <artifactId>mybatis</artifactId>
  145. </exclusion>
  146. <exclusion>
  147. <groupId>org.mybatis</groupId>
  148. <artifactId>mybatis-spring</artifactId>
  149. </exclusion>
  150. <exclusion>
  151. <groupId>com.github.jsqlparser</groupId>
  152. <artifactId>jsqlparser</artifactId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <!-- 自定义验证注解 -->
  157. <dependency>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-starter-validation</artifactId>
  160. </dependency>
  161. <!--常用工具类 -->
  162. <dependency>
  163. <groupId>org.apache.commons</groupId>
  164. <artifactId>commons-lang3</artifactId>
  165. </dependency>
  166. <!-- JSON工具类 -->
  167. <dependency>
  168. <groupId>com.fasterxml.jackson.core</groupId>
  169. <artifactId>jackson-databind</artifactId>
  170. </dependency>
  171. <!-- 阿里JSON解析器 -->
  172. <dependency>
  173. <groupId>com.alibaba</groupId>
  174. <artifactId>fastjson</artifactId>
  175. </dependency>
  176. <!-- io常用工具类 -->
  177. <dependency>
  178. <groupId>commons-io</groupId>
  179. <artifactId>commons-io</artifactId>
  180. </dependency>
  181. <!-- 文件上传工具类 -->
  182. <dependency>
  183. <groupId>commons-fileupload</groupId>
  184. <artifactId>commons-fileupload</artifactId>
  185. </dependency>
  186. <!-- excel工具 -->
  187. <dependency>
  188. <groupId>org.apache.poi</groupId>
  189. <artifactId>poi-ooxml</artifactId>
  190. </dependency>
  191. <!-- yml解析器 -->
  192. <dependency>
  193. <groupId>org.yaml</groupId>
  194. <artifactId>snakeyaml</artifactId>
  195. </dependency>
  196. <!-- Token生成与解析-->
  197. <dependency>
  198. <groupId>io.jsonwebtoken</groupId>
  199. <artifactId>jjwt</artifactId>
  200. </dependency>
  201. <!-- Jaxb -->
  202. <dependency>
  203. <groupId>javax.xml.bind</groupId>
  204. <artifactId>jaxb-api</artifactId>
  205. </dependency>
  206. <!-- redis 缓存操作 -->
  207. <dependency>
  208. <groupId>org.springframework.boot</groupId>
  209. <artifactId>spring-boot-starter-data-redis</artifactId>
  210. </dependency>
  211. <!-- pool 对象池 -->
  212. <dependency>
  213. <groupId>org.apache.commons</groupId>
  214. <artifactId>commons-pool2</artifactId>
  215. </dependency>
  216. <!-- 解析客户端操作系统、浏览器等 -->
  217. <dependency>
  218. <groupId>eu.bitwalker</groupId>
  219. <artifactId>UserAgentUtils</artifactId>
  220. </dependency>
  221. <!-- servlet包 -->
  222. <dependency>
  223. <groupId>javax.servlet</groupId>
  224. <artifactId>javax.servlet-api</artifactId>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.projectlombok</groupId>
  228. <artifactId>lombok</artifactId>
  229. </dependency>
  230. <dependency>
  231. <groupId>cn.hutool</groupId>
  232. <artifactId>hutool-all</artifactId>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.httpcomponents</groupId>
  236. <artifactId>httpclient</artifactId>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.springframework.retry</groupId>
  240. <artifactId>spring-retry</artifactId>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.warewms</groupId>
  244. <artifactId>warewms-hard</artifactId>
  245. </dependency>
  246. </dependencies>
  247. <build>
  248. <plugins>
  249. <!-- jar包 -->
  250. <plugin>
  251. <groupId>org.springframework.boot</groupId>
  252. <artifactId>spring-boot-maven-plugin</artifactId>
  253. <version>2.1.1.RELEASE</version>
  254. <configuration>
  255. <fork>true</fork>
  256. <classifier>exec</classifier>
  257. <finalName>${project.name}</finalName>
  258. <outputDirectory>${project.build.directory}/</outputDirectory>
  259. <!-- 在打包时将引用的外部jar引入到当前项目包中 -->
  260. <includeSystemScope>true</includeSystemScope>
  261. </configuration>
  262. <executions>
  263. <execution>
  264. <goals>
  265. <goal>repackage</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <!-- zip、tar.gz包 -->
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-assembly-plugin</artifactId>
  274. <version>3.1.0</version>
  275. <executions>
  276. <execution>
  277. <id>make-assembly</id>
  278. <phase>package</phase>
  279. <goals>
  280. <goal>single</goal>
  281. </goals>
  282. <configuration>
  283. <!-- 打包生成的文件名 -->
  284. <finalName>${project.name}</finalName>
  285. <!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
  286. <recompressZippedFiles>false</recompressZippedFiles>
  287. <!-- 打包生成的文件是否要追加 package.xml 中定义的 id 值 -->
  288. <appendAssemblyId>false</appendAssemblyId>
  289. <!-- 指向打包描述文件 package.xml -->
  290. <descriptors>
  291. <descriptor>package.xml</descriptor>
  292. </descriptors>
  293. <!-- 打包结果输出的基础目录 -->
  294. <outputDirectory>${project.build.directory}/</outputDirectory>
  295. </configuration>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. </plugins>
  300. </build>
  301. </project>