pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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>power-system</artifactId>
  7. <version>1.0.0-SNAPSHOT</version>
  8. <name>power-system</name>
  9. <description>power-system 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. <druid.version>1.1.10</druid.version>
  18. <hutool.version>4.5.7</hutool.version>
  19. <swagger2.version>2.9.2</swagger2.version>
  20. <swagger-models.version>1.6.0</swagger-models.version>
  21. <swagger-annotations.version>1.6.0</swagger-annotations.version>
  22. <mysql-connector.version>8.0.16</mysql-connector.version>
  23. <jjwt.version>0.9.0</jjwt.version>
  24. <mybatis-plus.version>3.3.2</mybatis-plus.version>
  25. <velocity.version>2.2</velocity.version>
  26. </properties>
  27. <parent>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-parent</artifactId>
  30. <version>2.3.0.RELEASE</version>
  31. <relativePath/> <!-- lookup parent from repository -->
  32. </parent>
  33. <dependencies>
  34. <!--SpringBoot通用依赖模块-->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-actuator</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-aop</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-test</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. <!--SpringBoot校验框架-->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-validation</artifactId>
  56. </dependency>
  57. <!--集成druid连接池-->
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>druid-spring-boot-starter</artifactId>
  61. <version>${druid.version}</version>
  62. </dependency>
  63. <!--Mysql数据库驱动-->
  64. <dependency>
  65. <groupId>mysql</groupId>
  66. <artifactId>mysql-connector-java</artifactId>
  67. <version>${mysql-connector.version}</version>
  68. </dependency>
  69. <!--Swagger-UI API文档生产工具-->
  70. <dependency>
  71. <groupId>io.springfox</groupId>
  72. <artifactId>springfox-swagger2</artifactId>
  73. <version>${swagger2.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>io.springfox</groupId>
  77. <artifactId>springfox-swagger-ui</artifactId>
  78. <version>${swagger2.version}</version>
  79. </dependency>
  80. <!--解决Swagger 2.9.2版本NumberFormatException-->
  81. <dependency>
  82. <groupId>io.swagger</groupId>
  83. <artifactId>swagger-models</artifactId>
  84. <version>${swagger-models.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.swagger</groupId>
  88. <artifactId>swagger-annotations</artifactId>
  89. <version>${swagger-annotations.version}</version>
  90. </dependency>
  91. <!--redis依赖配置-->
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-data-redis</artifactId>
  95. </dependency>
  96. <!--SpringSecurity依赖配置-->
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-security</artifactId>
  100. </dependency>
  101. <!--Hutool Java工具包-->
  102. <dependency>
  103. <groupId>cn.hutool</groupId>
  104. <artifactId>hutool-all</artifactId>
  105. <version>${hutool.version}</version>
  106. </dependency>
  107. <!--JWT(Json Web Token)登录支持-->
  108. <dependency>
  109. <groupId>io.jsonwebtoken</groupId>
  110. <artifactId>jjwt</artifactId>
  111. <version>${jjwt.version}</version>
  112. </dependency>
  113. <!--lombok依赖-->
  114. <dependency>
  115. <groupId>org.projectlombok</groupId>
  116. <artifactId>lombok</artifactId>
  117. <optional>true</optional>
  118. </dependency>
  119. <!--SpringBoot配置处理-->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-configuration-processor</artifactId>
  123. <optional>true</optional>
  124. </dependency>
  125. <!--MyBatis Plus 依赖-->
  126. <dependency>
  127. <groupId>com.baomidou</groupId>
  128. <artifactId>mybatis-plus-boot-starter</artifactId>
  129. <version>${mybatis-plus.version}</version>
  130. </dependency>
  131. <!--MyBatis Plus 代码生成器-->
  132. <dependency>
  133. <groupId>com.baomidou</groupId>
  134. <artifactId>mybatis-plus-generator</artifactId>
  135. <version>${mybatis-plus.version}</version>
  136. </dependency>
  137. <!--Velocity模板引擎-->
  138. <dependency>
  139. <groupId>org.apache.velocity</groupId>
  140. <artifactId>velocity-engine-core</artifactId>
  141. <version>${velocity.version}</version>
  142. </dependency>
  143. </dependencies>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. </plugin>
  150. <plugin>
  151. <groupId>com.spotify</groupId>
  152. <artifactId>docker-maven-plugin</artifactId>
  153. <version>${docker.maven.plugin.version}</version>
  154. <!-- <executions>-->
  155. <!-- <execution>-->
  156. <!-- <id>build-image</id>-->
  157. <!-- <phase>package</phase>-->
  158. <!-- <goals>-->
  159. <!-- <goal>build</goal>-->
  160. <!-- </goals>-->
  161. <!-- </execution>-->
  162. <!-- </executions>-->
  163. <!-- <configuration>-->
  164. <!-- <imageName>power-system/${project.artifactId}:${project.version}</imageName>-->
  165. <!-- <dockerHost>${docker.host}</dockerHost>-->
  166. <!-- <baseImage>java:8</baseImage>-->
  167. <!-- <entryPoint>["java", "-jar","/${project.build.finalName}.jar"]-->
  168. <!-- </entryPoint>-->
  169. <!-- <resources>-->
  170. <!-- <resource>-->
  171. <!-- <targetPath>/</targetPath>-->
  172. <!-- <directory>${project.build.directory}</directory>-->
  173. <!-- <include>${project.build.finalName}.jar</include>-->
  174. <!-- </resource>-->
  175. <!-- </resources>-->
  176. <!-- </configuration>-->
  177. </plugin>
  178. </plugins>
  179. </build>
  180. </project>