pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.zhzn.energy</groupId>
  7. <artifactId>energy-manage-platform</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0.0-SNAPSHOT</version>
  10. <modules>
  11. <!-- 公共服务 -->
  12. <module>energy-manage-common</module>
  13. <!-- 平台服务 -->
  14. <module>energy-manage-service</module>
  15. </modules>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  20. <swagger.version>2.6.1</swagger.version>
  21. <fastjson.version>1.2.9</fastjson.version>
  22. <aliyun-openservices.version>1.2.3</aliyun-openservices.version>
  23. <aliyun-sdk-oss.version>2.4.0</aliyun-sdk-oss.version>
  24. <docker.image.prefix>test</docker.image.prefix>
  25. <spring.boot.version>2.3.2.RELEASE</spring.boot.version>
  26. <spring.cloud.alibaba.version>1.5.0.RELEASE</spring.cloud.alibaba.version>
  27. </properties>
  28. <parent>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-dependencies</artifactId>
  31. <version>2.3.2.RELEASE</version>
  32. </parent>
  33. <dependencies>
  34. <dependency>
  35. <groupId>com.alibaba.cloud</groupId>
  36. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  37. <version>${spring.cloud.alibaba.version}</version>
  38. <type>pom</type>
  39. <scope>import</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-dependencies</artifactId>
  44. <version>Finchley.RELEASE</version>
  45. <type>pom</type>
  46. <scope>import</scope>
  47. </dependency>
  48. <!-- spring boot -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-aop</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-web</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-test</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-validation</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-jdbc</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-data-redis</artifactId>
  72. <exclusions>
  73. <exclusion>
  74. <groupId>io.lettuce</groupId>
  75. <artifactId>lettuce-core</artifactId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.mybatis.spring.boot</groupId>
  81. <artifactId>mybatis-spring-boot-starter</artifactId>
  82. <version>1.3.1</version>
  83. </dependency>
  84. <!-- spring boot -->
  85. <dependency>
  86. <groupId>redis.clients</groupId>
  87. <artifactId>jedis</artifactId>
  88. <version>3.1.0</version>
  89. </dependency>
  90. <!--分页-->
  91. <dependency>
  92. <groupId>com.github.pagehelper</groupId>
  93. <artifactId>pagehelper-spring-boot-starter</artifactId>
  94. <version>1.2.10</version>
  95. </dependency>
  96. <!--分页-->
  97. <!-- 通用mapper -->
  98. <dependency>
  99. <groupId>tk.mybatis</groupId>
  100. <artifactId>mapper-spring-boot-starter</artifactId>
  101. <version>4.2.1</version>
  102. </dependency>
  103. <!-- 通用mapper -->
  104. <dependency>
  105. <groupId>com.alibaba</groupId>
  106. <artifactId>druid-spring-boot-starter</artifactId>
  107. <version>1.1.10</version>
  108. </dependency>
  109. <!-- <dependency>-->
  110. <!-- <groupId>mysql</groupId>-->
  111. <!-- <artifactId>mysql-connector-java</artifactId>-->
  112. <!-- <version>5.1.43</version>-->
  113. <!-- </dependency>-->
  114. <dependency>
  115. <groupId>mysql</groupId>
  116. <artifactId>mysql-connector-java</artifactId>
  117. <version>8.0.21</version>
  118. </dependency>
  119. <!-- json -->
  120. <dependency>
  121. <groupId>com.alibaba</groupId>
  122. <artifactId>fastjson</artifactId>
  123. <version>${fastjson.version}</version>
  124. </dependency>
  125. <!-- json -->
  126. <dependency>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. <version>1.14.4</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.caucho</groupId>
  133. <artifactId>hessian</artifactId>
  134. <version>4.0.51</version>
  135. </dependency>
  136. <!--nacos 配置中心 -->
  137. <dependency>
  138. <groupId>com.alibaba.cloud</groupId>
  139. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  140. <version>2.2.3.RELEASE</version>
  141. </dependency>
  142. <!-- 引入swagger依赖 -->
  143. <dependency>
  144. <groupId>io.springfox</groupId>
  145. <artifactId>springfox-boot-starter</artifactId>
  146. <version>3.0.0</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>io.swagger</groupId>
  150. <artifactId>swagger-annotations</artifactId>
  151. <version>1.5.21</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>io.swagger</groupId>
  155. <artifactId>swagger-models</artifactId>
  156. <version>1.5.21</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.github.xiaoymin</groupId>
  160. <artifactId>knife4j-spring-boot-starter</artifactId>
  161. <version>3.0.1</version>
  162. </dependency>
  163. <!-- jwt -->
  164. <dependency>
  165. <groupId>com.auth0</groupId>
  166. <artifactId>java-jwt</artifactId>
  167. <version>3.4.0</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.testng</groupId>
  171. <artifactId>testng</artifactId>
  172. <version>6.9.9</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.checkerframework</groupId>
  176. <artifactId>checker-qual</artifactId>
  177. <version>3.12.0</version>
  178. <scope>compile</scope>
  179. </dependency>
  180. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
  181. <dependency>
  182. <groupId>cn.hutool</groupId>
  183. <artifactId>hutool-all</artifactId>
  184. <version>5.7.15</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.vdurmont</groupId>
  188. <artifactId>emoji-java</artifactId>
  189. <version>5.1.1</version>
  190. </dependency>
  191. <!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
  192. <dependency>
  193. <groupId>commons-logging</groupId>
  194. <artifactId>commons-logging</artifactId>
  195. <version>1.1.1</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-starter-test</artifactId>
  200. <scope>test</scope>
  201. <exclusions>
  202. <exclusion>
  203. <groupId>org.junit.vintage</groupId>
  204. <artifactId>junit-vintage-engine</artifactId>
  205. </exclusion>
  206. </exclusions>
  207. </dependency>
  208. <dependency>
  209. <groupId>junit</groupId>
  210. <artifactId>junit</artifactId>
  211. <scope>test</scope>
  212. </dependency>
  213. <!-- json转换 -->
  214. <dependency>
  215. <groupId>com.fasterxml.jackson.datatype</groupId>
  216. <artifactId>jackson-datatype-joda</artifactId>
  217. <version>2.9.10</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>commons-fileupload</groupId>
  221. <artifactId>commons-fileupload</artifactId>
  222. <version>1.3.1</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.hibernate.validator</groupId>
  226. <artifactId>hibernate-validator</artifactId>
  227. </dependency>
  228. <!-- forest 远程连接框架 -->
  229. <!--<dependency>-->
  230. <!--<groupId>com.dtflys.forest</groupId>-->
  231. <!--<artifactId>forest-spring-boot-starter</artifactId>-->
  232. <!--<version>1.5.13</version>-->
  233. <!--</dependency>-->
  234. <!-- zip压缩包 -->
  235. <dependency>
  236. <groupId>net.lingala.zip4j</groupId>
  237. <artifactId>zip4j</artifactId>
  238. <version>1.3.2</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.alibaba</groupId>
  242. <artifactId>easyexcel</artifactId>
  243. <version>2.2.3</version>
  244. </dependency>
  245. <!-- 浏览器解析工具 -->
  246. <dependency>
  247. <groupId>eu.bitwalker</groupId>
  248. <artifactId>UserAgentUtils</artifactId>
  249. <version>1.21</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.commons</groupId>
  253. <artifactId>commons-lang3</artifactId>
  254. <version>3.10</version>
  255. </dependency>
  256. </dependencies>
  257. <build>
  258. <plugins>
  259. <!-- Compiler 插件, 设定JDK版本 -->
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-compiler-plugin</artifactId>
  263. <version>${maven-compiler-plugin.version}</version>
  264. <configuration>
  265. <source>${java.version}</source>
  266. <target>${java.version}</target>
  267. <encoding>utf-8</encoding>
  268. <showWarnings>true</showWarnings>
  269. <compilerArguments>
  270. <endorseddirs>${endorsed.dir}</endorseddirs>
  271. </compilerArguments>
  272. </configuration>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-resources-plugin</artifactId>
  277. <version>2.6</version>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. <!-- 配置环境 -->
  282. <profiles>
  283. <profile>
  284. <id>dev</id>
  285. <properties>
  286. <profiles.active>dev</profiles.active>
  287. </properties>
  288. <activation>
  289. <activeByDefault>true</activeByDefault>
  290. </activation>
  291. </profile>
  292. <profile>
  293. <id>show</id>
  294. <properties>
  295. <profiles.active>show</profiles.active>
  296. </properties>
  297. </profile>
  298. <profile>
  299. <id>prod</id>
  300. <properties>
  301. <profiles.active>prod</profiles.active>
  302. </properties>
  303. </profile>
  304. <profile>
  305. <id>tidb</id>
  306. <properties>
  307. <profiles.active>tidb</profiles.active>
  308. </properties>
  309. </profile>
  310. </profiles>
  311. </project>