pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. <parent>
  6. <artifactId>energy-manage-platform</artifactId>
  7. <groupId>com.zhzn.energy</groupId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>energy-manage-service</artifactId>
  12. <properties>
  13. <energy-manage-common.version>1.0.0-SNAPSHOT</energy-manage-common.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.zhzn.energy</groupId>
  18. <artifactId>energy-manage-common</artifactId>
  19. <version>${energy-manage-common.version}</version>
  20. </dependency>
  21. <!-- xxl-job 分布式任务 -->
  22. <dependency>
  23. <groupId>com.xuxueli</groupId>
  24. <artifactId>xxl-job-core</artifactId>
  25. <version>2.3.0</version>
  26. </dependency>
  27. <!-- kafka -->
  28. <dependency>
  29. <groupId>org.springframework.kafka</groupId>
  30. <artifactId>spring-kafka</artifactId>
  31. </dependency>
  32. <!--minio-->
  33. <dependency>
  34. <groupId>io.minio</groupId>
  35. <artifactId>minio</artifactId>
  36. <version>8.0.3</version>
  37. </dependency>
  38. <!--拼音-->
  39. <dependency>
  40. <groupId>com.belerweb</groupId>
  41. <artifactId>pinyin4j</artifactId>
  42. <version>2.5.1</version>
  43. </dependency>
  44. <!-- forest 远程连接框架 -->
  45. <dependency>
  46. <groupId>com.dtflys.forest</groupId>
  47. <artifactId>forest-spring-boot-starter</artifactId>
  48. <version>1.5.13</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>net.sf.dozer</groupId>
  52. <artifactId>dozer</artifactId>
  53. <version>5.5.1</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <finalName>${project.artifactId}</finalName>
  58. <resources>
  59. <resource>
  60. <directory>src/main/resources/</directory>
  61. <filtering>true</filtering>
  62. <includes>
  63. <include>**/*.properties</include>
  64. </includes>
  65. </resource>
  66. <resource>
  67. <directory>src/main/resources/</directory>
  68. <filtering>true</filtering>
  69. </resource>
  70. </resources>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <version>2.0.5.RELEASE</version>
  76. <executions>
  77. <execution>
  78. <goals>
  79. <goal>repackage</goal>
  80. </goals>
  81. </execution>
  82. </executions>
  83. <configuration>
  84. <mainClass>com.energy.manage.service.ManageAppApplication</mainClass>
  85. </configuration>
  86. </plugin>
  87. <!-- Docker maven plugin -->
  88. <plugin>
  89. <groupId>com.spotify</groupId>
  90. <artifactId>docker-maven-plugin</artifactId>
  91. <version>1.0.0</version>
  92. <configuration>
  93. <!-- docker私服的地址 -->
  94. <!-- <dockerHost>http://192.168.112.135:2375</dockerHost>-->
  95. <!--镜像名称以及版本号-->
  96. <imageName>${project.build.finalName}:1.0.0</imageName>
  97. <!-- 若需要重复构建相同标签名称的镜像,可将 forceTags 设置为 true -->
  98. <forceTags>true</forceTags>
  99. <!--Dockerfile的位置 -->
  100. <dockerDirectory>${project.basedir}</dockerDirectory>
  101. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  102. <resources>
  103. <resource>
  104. <targetPath>/</targetPath>
  105. <directory>${project.build.directory}</directory>
  106. <include>${project.build.finalName}.jar</include>
  107. </resource>
  108. </resources>
  109. </configuration>
  110. </plugin>
  111. <!-- Docker maven plugin -->
  112. <!-- Compiler 插件, 设定JDK版本 -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-compiler-plugin</artifactId>
  116. <version>${maven-compiler-plugin.version}</version>
  117. <configuration>
  118. <source>${java.version}</source>
  119. <target>${java.version}</target>
  120. <encoding>utf-8</encoding>
  121. <showWarnings>true</showWarnings>
  122. <compilerArguments>
  123. <endorseddirs>${endorsed.dir}</endorseddirs>
  124. </compilerArguments>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-resources-plugin</artifactId>
  130. <version>2.6</version>
  131. <configuration>
  132. <encoding>UTF-8</encoding>
  133. <!-- 过滤后缀文件 -->
  134. <nonFilteredFileExtensions>
  135. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  136. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  137. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  138. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  139. </nonFilteredFileExtensions>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.mybatis.generator</groupId>
  144. <artifactId>mybatis-generator-maven-plugin</artifactId>
  145. <version>1.3.7</version>
  146. <configuration>
  147. <!-- 配置生成的配置文件的位置(如果此处不配置该值,则在运行命令里需要添加执行文件路径) -->
  148. <configurationFile>generator/generatorConfig.xml</configurationFile>
  149. <verbose>true</verbose>
  150. <overwrite>true</overwrite>
  151. </configuration>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. <!-- 配置环境 -->
  156. <profiles>
  157. <profile>
  158. <id>dev</id>
  159. <properties>
  160. <profiles.active>dev</profiles.active>
  161. </properties>
  162. <activation>
  163. <activeByDefault>true</activeByDefault>
  164. </activation>
  165. </profile>
  166. <profile>
  167. <id>show</id>
  168. <properties>
  169. <profiles.active>show</profiles.active>
  170. </properties>
  171. </profile>
  172. <profile>
  173. <id>prod</id>
  174. <properties>
  175. <profiles.active>prod</profiles.active>
  176. </properties>
  177. </profile>
  178. </profiles>
  179. </project>