pom.xml 6.2 KB

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