pom.xml 12 KB

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