pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.jiashun.gao</groupId>
  6. <artifactId>file-collect</artifactId>
  7. <version>1.0.0-SNAPSHOT</version>
  8. <name>file-collect</name>
  9. <description>file-collect project</description>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  13. <java.version>1.8</java.version>
  14. <skipTests>true</skipTests>
  15. <docker.host>http://192.168.3.101:2375</docker.host>
  16. <docker.maven.plugin.version>1.2.2</docker.maven.plugin.version>
  17. <docker.image.prefix>gaojiashun</docker.image.prefix>
  18. <druid.version>1.1.10</druid.version>
  19. <hutool.version>4.5.7</hutool.version>
  20. <swagger2.version>2.9.2</swagger2.version>
  21. <swagger-models.version>1.6.0</swagger-models.version>
  22. <swagger-annotations.version>1.6.0</swagger-annotations.version>
  23. <mysql-connector.version>8.0.16</mysql-connector.version>
  24. <jjwt.version>0.9.0</jjwt.version>
  25. <mybatis-plus.version>3.3.2</mybatis-plus.version>
  26. <velocity.version>2.2</velocity.version>
  27. <!-- 独立打包存放的库文件路径 -->
  28. <module.auth.library.path>./docker-compose/devops/lib</module.auth.library.path>
  29. <module.auth.jar.output.path>./docker-compose/devops/dockerfile/file_collect</module.auth.jar.output.path>
  30. <docker.container.externel.lib.path>lib/</docker.container.externel.lib.path>
  31. </properties>
  32. <parent>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-parent</artifactId>
  35. <version>2.3.0.RELEASE</version>
  36. <relativePath/> <!-- lookup parent from repository -->
  37. </parent>
  38. <dependencies>
  39. <!--SpringBoot通用依赖模块-->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-actuator</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-aop</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-test</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <!--SpringBoot校验框架-->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-validation</artifactId>
  61. </dependency>
  62. <!--集成druid连接池-->
  63. <dependency>
  64. <groupId>com.alibaba</groupId>
  65. <artifactId>druid-spring-boot-starter</artifactId>
  66. <version>${druid.version}</version>
  67. </dependency>
  68. <!--Mysql数据库驱动-->
  69. <dependency>
  70. <groupId>mysql</groupId>
  71. <artifactId>mysql-connector-java</artifactId>
  72. <version>${mysql-connector.version}</version>
  73. </dependency>
  74. <!--Swagger-UI API文档生产工具-->
  75. <dependency>
  76. <groupId>io.springfox</groupId>
  77. <artifactId>springfox-swagger2</artifactId>
  78. <version>${swagger2.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>io.springfox</groupId>
  82. <artifactId>springfox-swagger-ui</artifactId>
  83. <version>${swagger2.version}</version>
  84. </dependency>
  85. <!--解决Swagger 2.9.2版本NumberFormatException-->
  86. <dependency>
  87. <groupId>io.swagger</groupId>
  88. <artifactId>swagger-models</artifactId>
  89. <version>${swagger-models.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.swagger</groupId>
  93. <artifactId>swagger-annotations</artifactId>
  94. <version>${swagger-annotations.version}</version>
  95. </dependency>
  96. <!--redis依赖配置-->
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-data-redis</artifactId>
  100. </dependency>
  101. <!--SpringSecurity依赖配置-->
  102. <!--SpringSecurity依赖配置-->
  103. <!--<dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-security</artifactId>
  106. </dependency>-->
  107. <!--Hutool Java工具包-->
  108. <dependency>
  109. <groupId>cn.hutool</groupId>
  110. <artifactId>hutool-all</artifactId>
  111. <version>${hutool.version}</version>
  112. </dependency>
  113. <!--JWT(Json Web Token)登录支持-->
  114. <dependency>
  115. <groupId>io.jsonwebtoken</groupId>
  116. <artifactId>jjwt</artifactId>
  117. <version>${jjwt.version}</version>
  118. </dependency>
  119. <!--lombok依赖-->
  120. <dependency>
  121. <groupId>org.projectlombok</groupId>
  122. <artifactId>lombok</artifactId>
  123. <optional>true</optional>
  124. </dependency>
  125. <!--SpringBoot配置处理-->
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-configuration-processor</artifactId>
  129. <optional>true</optional>
  130. </dependency>
  131. <!--MyBatis Plus 依赖-->
  132. <dependency>
  133. <groupId>com.baomidou</groupId>
  134. <artifactId>mybatis-plus-boot-starter</artifactId>
  135. <version>${mybatis-plus.version}</version>
  136. </dependency>
  137. <!--MyBatis Plus 代码生成器-->
  138. <dependency>
  139. <groupId>com.baomidou</groupId>
  140. <artifactId>mybatis-plus-generator</artifactId>
  141. <version>${mybatis-plus.version}</version>
  142. </dependency>
  143. <!--Velocity模板引擎-->
  144. <dependency>
  145. <groupId>org.apache.velocity</groupId>
  146. <artifactId>velocity-engine-core</artifactId>
  147. <version>${velocity.version}</version>
  148. </dependency>
  149. <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel -->
  150. <dependency>
  151. <groupId>com.alibaba</groupId>
  152. <artifactId>easyexcel</artifactId>
  153. <version>2.2.6</version>
  154. </dependency>
  155. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  156. <dependency>
  157. <groupId>org.apache.httpcomponents</groupId>
  158. <artifactId>httpclient</artifactId>
  159. <version>4.5.13</version>
  160. </dependency>
  161. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-compress -->
  162. <dependency>
  163. <groupId>org.apache.commons</groupId>
  164. <artifactId>commons-compress</artifactId>
  165. <version>1.20</version>
  166. </dependency>
  167. <!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config -->
  168. <dependency>
  169. <groupId>com.alibaba.cloud</groupId>
  170. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  171. <version>2.2.5.RELEASE</version>
  172. </dependency>
  173. <!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config -->
  174. <dependency>
  175. <groupId>com.keystar</groupId>
  176. <artifactId>eprdms_auth_client</artifactId>
  177. <version>V100R001C00B020</version>
  178. </dependency>
  179. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket -->
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-websocket</artifactId>
  183. <version>2.6.2</version>
  184. </dependency>
  185. </dependencies>
  186. <build>
  187. <plugins>
  188. <!-- 打包配置 -->
  189. <plugin>
  190. <groupId>org.springframework.boot</groupId>
  191. <artifactId>spring-boot-maven-plugin</artifactId>
  192. <version>${spring-boot.version}</version>
  193. <executions>
  194. <execution>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. <configuration>
  202. <fork>true</fork>
  203. <layout>ZIP</layout>
  204. <!-- 不包含任何jar包依赖 -->
  205. <includes>
  206. <include>
  207. <groupId>null</groupId>
  208. <artifactId>null</artifactId>
  209. </include>
  210. </includes>
  211. <outputDirectory>${module.auth.jar.output.path}</outputDirectory>
  212. <mainClass>com.macro.mall.tiny.PowerSystemApplication</mainClass>
  213. </configuration>
  214. </plugin>
  215. <!-- 拷贝jar包配置 -->
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-dependency-plugin</artifactId>
  219. <executions>
  220. <execution>
  221. <id>copy-lib</id>
  222. <phase>package</phase>
  223. <goals>
  224. <goal>copy-dependencies</goal>
  225. </goals>
  226. <configuration>
  227. <excludeTransitive>false</excludeTransitive>
  228. <stripVersion>false</stripVersion>
  229. <silent>false</silent>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. <configuration>
  234. <outputDirectory>${module.auth.library.path}</outputDirectory>
  235. </configuration>
  236. </plugin>
  237. <!-- 基于maven-jar-plugin插件实现把依赖jar定义写入输出jar的META-INFO/MANIFEST文件 -->
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-jar-plugin</artifactId>
  241. <version>3.2.0</version>
  242. <configuration>
  243. <archive>
  244. <manifest>
  245. <addClasspath>true</addClasspath>
  246. <classpathPrefix>${docker.container.externel.lib.path}</classpathPrefix>
  247. <useUniqueVersions>false</useUniqueVersions>
  248. </manifest>
  249. </archive>
  250. </configuration>
  251. </plugin>
  252. <!-- 拷贝项目所有依赖jar文件到构建lib目录下 -->
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-resources-plugin</artifactId>
  256. <version>2.7</version>
  257. <dependencies>
  258. <dependency>
  259. <groupId>org.apache.maven.shared</groupId>
  260. <artifactId>maven-filtering</artifactId>
  261. <version>1.3</version>
  262. </dependency>
  263. </dependencies>
  264. <executions>
  265. <execution>
  266. <id>copy-resource</id>
  267. <phase>package</phase>
  268. <goals>
  269. <goal>copy-resources</goal>
  270. </goals>
  271. <configuration>
  272. <outputDirectory>${module.auth.jar.output.path}</outputDirectory>
  273. <resources>
  274. <resource>
  275. <directory>src/main/resources</directory>
  276. <!-- <includes>-->
  277. <!-- <exclude>**/*.yml</exclude>-->
  278. <!-- <exclude>**/*.properties</exclude>-->
  279. <!-- </includes>-->
  280. <excludes>
  281. <exclude>generator.properties</exclude>
  282. </excludes>
  283. <filtering>true</filtering>
  284. </resource>
  285. </resources>
  286. <encoding>UTF-8</encoding>
  287. </configuration>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </project>