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