pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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.ztmap</groupId>
  6. <artifactId>zhny_admin</artifactId>
  7. <version>2.0.0</version>
  8. <packaging>jar</packaging>
  9. <name>zhny_admin</name>
  10. <url></url>
  11. <description>智慧能源后台管理平台</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.2.13.RELEASE</version>
  16. <relativePath />
  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. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  23. <shiro.version>1.7.1</shiro.version>
  24. <thymeleaf.extras.shiro.version>2.0.0</thymeleaf.extras.shiro.version>
  25. <mybatis.spring.boot.starter.version>2.1.4</mybatis.spring.boot.starter.version>
  26. <pagehelper.spring.boot.starter.version>1.3.0</pagehelper.spring.boot.starter.version>
  27. <fastjson.version>1.2.75</fastjson.version>
  28. <druid.version>1.2.4</druid.version>
  29. <commons.io.version>2.5</commons.io.version>
  30. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  31. <bitwalker.version>1.21</bitwalker.version>
  32. <velocity.version>1.7</velocity.version>
  33. <kaptcha.version>2.3.2</kaptcha.version>
  34. <swagger.version>2.9.2</swagger.version>
  35. <poi.version>4.1.2</poi.version>
  36. <oshi.version>5.6.0</oshi.version>
  37. <jna.version>5.7.0</jna.version>
  38. </properties>
  39. <dependencies>
  40. <dependency>
  41. <groupId>com.google.code.gson</groupId>
  42. <artifactId>gson</artifactId>
  43. <version>2.8.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.locationtech.jts</groupId>
  47. <artifactId>jts-core</artifactId>
  48. <version>1.18.2</version>
  49. </dependency>
  50. <!-- SpringBoot 核心包 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter</artifactId>
  54. </dependency>
  55. <!-- SpringBoot 测试 -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-test</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <!-- SpringBoot 拦截器 -->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-aop</artifactId>
  65. </dependency>
  66. <!-- SpringBoot Web容器 -->
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-web</artifactId>
  70. </dependency>
  71. <!-- SpringBoot集成thymeleaf模板 -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  75. </dependency>
  76. <!-- spring-boot-devtools -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-devtools</artifactId>
  80. <optional>true</optional> <!-- 表示依赖不会传递 -->
  81. </dependency>
  82. <!-- 计算两个坐标距离数 -->
  83. <dependency>
  84. <groupId>org.gavaghan</groupId>
  85. <artifactId>geodesy</artifactId>
  86. <version>1.1.3</version>
  87. </dependency>
  88. <!-- Mysql驱动包 -->
  89. <dependency>
  90. <groupId>mysql</groupId>
  91. <artifactId>mysql-connector-java</artifactId>
  92. </dependency>
  93. <!-- SpringBoot集成mybatis框架 -->
  94. <dependency>
  95. <groupId>org.mybatis.spring.boot</groupId>
  96. <artifactId>mybatis-spring-boot-starter</artifactId>
  97. <version>${mybatis.spring.boot.starter.version}</version>
  98. </dependency>
  99. <!-- pagehelper 分页插件 -->
  100. <dependency>
  101. <groupId>com.github.pagehelper</groupId>
  102. <artifactId>pagehelper-spring-boot-starter</artifactId>
  103. <version>${pagehelper.spring.boot.starter.version}</version>
  104. </dependency>
  105. <!--阿里数据库连接池 -->
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>druid-spring-boot-starter</artifactId>
  109. <version>${druid.version}</version>
  110. </dependency>
  111. <!--常用工具类 -->
  112. <dependency>
  113. <groupId>org.apache.commons</groupId>
  114. <artifactId>commons-lang3</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>cn.hutool</groupId>
  118. <artifactId>hutool-all</artifactId>
  119. <version>4.1.12</version>
  120. </dependency>
  121. <!--io常用工具类 -->
  122. <dependency>
  123. <groupId>commons-io</groupId>
  124. <artifactId>commons-io</artifactId>
  125. <version>${commons.io.version}</version>
  126. </dependency>
  127. <!--文件上传工具类 -->
  128. <dependency>
  129. <groupId>commons-fileupload</groupId>
  130. <artifactId>commons-fileupload</artifactId>
  131. <version>${commons.fileupload.version}</version>
  132. </dependency>
  133. <!--Shiro核心框架 -->
  134. <dependency>
  135. <groupId>org.apache.shiro</groupId>
  136. <artifactId>shiro-core</artifactId>
  137. <version>${shiro.version}</version>
  138. </dependency>
  139. <!-- Shiro使用Spring框架 -->
  140. <dependency>
  141. <groupId>org.apache.shiro</groupId>
  142. <artifactId>shiro-spring</artifactId>
  143. <version>${shiro.version}</version>
  144. </dependency>
  145. <!-- Shiro使用EhCache缓存框架 -->
  146. <dependency>
  147. <groupId>org.apache.shiro</groupId>
  148. <artifactId>shiro-ehcache</artifactId>
  149. <version>${shiro.version}</version>
  150. </dependency>
  151. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  152. <dependency>
  153. <groupId>com.github.theborakompanioni</groupId>
  154. <artifactId>thymeleaf-extras-shiro</artifactId>
  155. <version>${thymeleaf.extras.shiro.version}</version>
  156. </dependency>
  157. <!-- 阿里JSON解析器 -->
  158. <dependency>
  159. <groupId>com.alibaba</groupId>
  160. <artifactId>fastjson</artifactId>
  161. <version>${fastjson.version}</version>
  162. </dependency>
  163. <!-- redis 缓存操作 -->
  164. <dependency>
  165. <groupId>org.springframework.boot</groupId>
  166. <artifactId>spring-boot-starter-data-redis</artifactId>
  167. </dependency>
  168. <!--Token生成与解析-->
  169. <dependency>
  170. <groupId>io.jsonwebtoken</groupId>
  171. <artifactId>jjwt</artifactId>
  172. <version>0.9.1</version>
  173. </dependency>
  174. <!-- 解析客户端操作系统、浏览器等 -->
  175. <dependency>
  176. <groupId>eu.bitwalker</groupId>
  177. <artifactId>UserAgentUtils</artifactId>
  178. <version>${bitwalker.version}</version>
  179. </dependency>
  180. <!--Spring框架基本的核心工具-->
  181. <dependency>
  182. <groupId>org.springframework</groupId>
  183. <artifactId>spring-context-support</artifactId>
  184. </dependency>
  185. <!-- modbus -->
  186. <dependency>
  187. <groupId>com.digitalpetri.modbus</groupId>
  188. <artifactId>modbus-master-tcp</artifactId>
  189. <version>1.1.0</version>
  190. </dependency>
  191. <!-- <dependency>-->
  192. <!-- <groupId>com.infiniteautomation</groupId>-->
  193. <!-- <artifactId>modbus4j</artifactId>-->
  194. <!-- <version>3.0.3</version>-->
  195. <!-- </dependency>-->
  196. <!-- 定时任务 -->
  197. <dependency>
  198. <groupId>org.quartz-scheduler</groupId>
  199. <artifactId>quartz</artifactId>
  200. <exclusions>
  201. <exclusion>
  202. <groupId>com.mchange</groupId>
  203. <artifactId>c3p0</artifactId>
  204. </exclusion>
  205. </exclusions>
  206. </dependency>
  207. <!--velocity代码生成使用模板 -->
  208. <dependency>
  209. <groupId>org.apache.velocity</groupId>
  210. <artifactId>velocity</artifactId>
  211. <version>${velocity.version}</version>
  212. <exclusions>
  213. <exclusion>
  214. <groupId>commons-collections</groupId>
  215. <artifactId>commons-collections</artifactId>
  216. </exclusion>
  217. </exclusions>
  218. </dependency>
  219. <!--验证码 -->
  220. <dependency>
  221. <groupId>com.github.penggle</groupId>
  222. <artifactId>kaptcha</artifactId>
  223. <version>${kaptcha.version}</version>
  224. <exclusions>
  225. <exclusion>
  226. <artifactId>javax.servlet-api</artifactId>
  227. <groupId>javax.servlet</groupId>
  228. </exclusion>
  229. </exclusions>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.jsoup</groupId>
  233. <artifactId>jsoup</artifactId>
  234. <version>1.13.1</version>
  235. </dependency>
  236. <!-- swagger2-->
  237. <dependency>
  238. <groupId>io.springfox</groupId>
  239. <artifactId>springfox-swagger2</artifactId>
  240. <version>${swagger.version}</version>
  241. <exclusions>
  242. <exclusion>
  243. <groupId>io.swagger</groupId>
  244. <artifactId>swagger-annotations</artifactId>
  245. </exclusion>
  246. <exclusion>
  247. <groupId>io.swagger</groupId>
  248. <artifactId>swagger-models</artifactId>
  249. </exclusion>
  250. </exclusions>
  251. </dependency>
  252. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  253. <dependency>
  254. <groupId>io.swagger</groupId>
  255. <artifactId>swagger-annotations</artifactId>
  256. <version>1.5.21</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>io.swagger</groupId>
  260. <artifactId>swagger-models</artifactId>
  261. <version>1.5.21</version>
  262. </dependency>
  263. <!-- swagger2-UI-->
  264. <dependency>
  265. <groupId>io.springfox</groupId>
  266. <artifactId>springfox-swagger-ui</artifactId>
  267. <version>${swagger.version}</version>
  268. </dependency>
  269. <!-- 获取系统信息 -->
  270. <dependency>
  271. <groupId>com.github.oshi</groupId>
  272. <artifactId>oshi-core</artifactId>
  273. <version>${oshi.version}</version>
  274. </dependency>
  275. <!-- excel工具 -->
  276. <dependency>
  277. <groupId>org.apache.poi</groupId>
  278. <artifactId>poi-ooxml</artifactId>
  279. <version>${poi.version}</version>
  280. </dependency>
  281. <!-- 海康综合安防管理平台 -->
  282. <dependency>
  283. <groupId>com.hikvision.ga</groupId>
  284. <artifactId>artemis-http-client</artifactId>
  285. <version>1.1.3</version>
  286. </dependency>
  287. <!-- geotools相关pom -->
  288. <dependency>
  289. <groupId>com.vividsolutions</groupId>
  290. <artifactId>jts</artifactId>
  291. <version>1.13</version>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.gdal</groupId>
  295. <artifactId>gdal</artifactId>
  296. <version>3.2.0</version>
  297. </dependency>
  298. <!--<dependency>
  299. <groupId>org.geotools</groupId>
  300. <artifactId>gt-epsg-hsql</artifactId>
  301. <version>20.0</version>
  302. </dependency>
  303. <dependency>
  304. <groupId>org.geotools</groupId>
  305. <artifactId>gt-main</artifactId>
  306. <version>20.0</version>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.geotools</groupId>
  310. <artifactId>gt-cql</artifactId>
  311. <version>20.0</version>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.geotools</groupId>
  315. <artifactId>gt-shapefile</artifactId>
  316. <version>20.0</version>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.geotools</groupId>
  320. <artifactId>gt-opengis</artifactId>
  321. <version>20.0</version>
  322. </dependency>-->
  323. </dependencies>
  324. <build>
  325. <finalName>${project.artifactId}</finalName>
  326. <plugins>
  327. <plugin>
  328. <groupId>org.springframework.boot</groupId>
  329. <artifactId>spring-boot-maven-plugin</artifactId>
  330. <configuration>
  331. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  332. </configuration>
  333. </plugin>
  334. <plugin>
  335. <groupId>com.google.cloud.tools</groupId>
  336. <artifactId>jib-maven-plugin</artifactId>
  337. <version>3.4.1</version>
  338. <configuration>
  339. <!--允许非https-->
  340. <allowInsecureRegistries>true</allowInsecureRegistries>
  341. <!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
  342. <from>
  343. <image>k8s.xt.wenhq.top:8082/docker_r/javarun:1.2</image>
  344. </from>
  345. <to>
  346. <!--镜像名称和tag,使用了mvn内置变量${project.version},表示当前工程的version-->
  347. <image>docker.xt.wenhq.top:8083/zhny/${project.name}:${project.version}</image>
  348. <auth>
  349. <username>admin</username>
  350. <password>xtwenhongquan</password>
  351. </auth>
  352. </to>
  353. <!--容器相关的属性-->
  354. <container>
  355. <mainClass>com.ztmap.ZTMapApplication</mainClass>
  356. <jvmFlags>
  357. <jvmFlag>-Xdebug</jvmFlag>
  358. </jvmFlags>
  359. <ports>9087</ports>
  360. </container>
  361. </configuration>
  362. <executions>
  363. <execution>
  364. <phase>package</phase>
  365. <goals>
  366. <goal>build</goal>
  367. </goals>
  368. </execution>
  369. </executions>
  370. </plugin>
  371. </plugins>
  372. </build>
  373. <repositories>
  374. <repository>
  375. <id>public</id>
  376. <name>aliyun nexus</name>
  377. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  378. <releases>
  379. <enabled>true</enabled>
  380. </releases>
  381. </repository>
  382. </repositories>
  383. <pluginRepositories>
  384. <pluginRepository>
  385. <id>public</id>
  386. <name>aliyun nexus</name>
  387. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  388. <releases>
  389. <enabled>true</enabled>
  390. </releases>
  391. <snapshots>
  392. <enabled>false</enabled>
  393. </snapshots>
  394. </pluginRepository>
  395. </pluginRepositories>
  396. </project>