pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. </dependencies>
  51. <build>
  52. <finalName>${project.artifactId}</finalName>
  53. <resources>
  54. <resource>
  55. <directory>src/main/resources/</directory>
  56. <filtering>true</filtering>
  57. <includes>
  58. <include>**/*.properties</include>
  59. </includes>
  60. </resource>
  61. <resource>
  62. <directory>src/main/resources/</directory>
  63. <filtering>true</filtering>
  64. </resource>
  65. </resources>
  66. <plugins>
  67. <plugin>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-maven-plugin</artifactId>
  70. <version>2.0.5.RELEASE</version>
  71. <executions>
  72. <execution>
  73. <goals>
  74. <goal>repackage</goal>
  75. </goals>
  76. </execution>
  77. </executions>
  78. <configuration>
  79. <mainClass>com.energy.manage.service.ManageAppApplication</mainClass>
  80. </configuration>
  81. </plugin>
  82. <!-- Docker maven plugin -->
  83. <plugin>
  84. <groupId>com.spotify</groupId>
  85. <artifactId>docker-maven-plugin</artifactId>
  86. <version>1.0.0</version>
  87. <configuration>
  88. <!-- docker私服的地址 -->
  89. <!-- <dockerHost>http://192.168.112.135:2375</dockerHost>-->
  90. <!--镜像名称以及版本号-->
  91. <imageName>${project.build.finalName}:1.0.0</imageName>
  92. <!-- 若需要重复构建相同标签名称的镜像,可将 forceTags 设置为 true -->
  93. <forceTags>true</forceTags>
  94. <!--Dockerfile的位置 -->
  95. <dockerDirectory>${project.basedir}</dockerDirectory>
  96. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  97. <resources>
  98. <resource>
  99. <targetPath>/</targetPath>
  100. <directory>${project.build.directory}</directory>
  101. <include>${project.build.finalName}.jar</include>
  102. </resource>
  103. </resources>
  104. </configuration>
  105. </plugin>
  106. <!-- Docker maven plugin -->
  107. <!-- Compiler 插件, 设定JDK版本 -->
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-compiler-plugin</artifactId>
  111. <version>${maven-compiler-plugin.version}</version>
  112. <configuration>
  113. <source>${java.version}</source>
  114. <target>${java.version}</target>
  115. <encoding>utf-8</encoding>
  116. <showWarnings>true</showWarnings>
  117. <compilerArguments>
  118. <endorseddirs>${endorsed.dir}</endorseddirs>
  119. </compilerArguments>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-resources-plugin</artifactId>
  125. <version>2.6</version>
  126. <configuration>
  127. <encoding>UTF-8</encoding>
  128. <!-- 过滤后缀文件 -->
  129. <nonFilteredFileExtensions>
  130. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  131. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  132. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  133. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  134. </nonFilteredFileExtensions>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.mybatis.generator</groupId>
  139. <artifactId>mybatis-generator-maven-plugin</artifactId>
  140. <version>1.3.7</version>
  141. <configuration>
  142. <!-- 配置生成的配置文件的位置(如果此处不配置该值,则在运行命令里需要添加执行文件路径) -->
  143. <configurationFile>generator/generatorConfig.xml</configurationFile>
  144. <verbose>true</verbose>
  145. <overwrite>true</overwrite>
  146. </configuration>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. <!-- 配置环境 -->
  151. <profiles>
  152. <profile>
  153. <id>dev</id>
  154. <properties>
  155. <profiles.active>dev</profiles.active>
  156. </properties>
  157. <activation>
  158. <activeByDefault>true</activeByDefault>
  159. </activation>
  160. </profile>
  161. <profile>
  162. <id>show</id>
  163. <properties>
  164. <profiles.active>show</profiles.active>
  165. </properties>
  166. </profile>
  167. <profile>
  168. <id>prod</id>
  169. <properties>
  170. <profiles.active>prod</profiles.active>
  171. </properties>
  172. </profile>
  173. </profiles>
  174. </project>