pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. <!-- Compiler 插件, 设定JDK版本 -->
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <version>${maven-compiler-plugin.version}</version>
  81. <configuration>
  82. <source>${java.version}</source>
  83. <target>${java.version}</target>
  84. <encoding>utf-8</encoding>
  85. <showWarnings>true</showWarnings>
  86. <compilerArguments>
  87. <endorseddirs>${endorsed.dir}</endorseddirs>
  88. </compilerArguments>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-resources-plugin</artifactId>
  94. <version>2.6</version>
  95. <configuration>
  96. <encoding>UTF-8</encoding>
  97. <!-- 过滤后缀文件 -->
  98. <nonFilteredFileExtensions>
  99. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  100. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  101. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  102. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  103. </nonFilteredFileExtensions>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. <!-- 配置环境 -->
  109. <profiles>
  110. <profile>
  111. <id>dev</id>
  112. <properties>
  113. <profiles.active>dev</profiles.active>
  114. </properties>
  115. <activation>
  116. <activeByDefault>true</activeByDefault>
  117. </activation>
  118. </profile>
  119. <profile>
  120. <id>test</id>
  121. <properties>
  122. <profiles.active>test</profiles.active>
  123. </properties>
  124. </profile>
  125. <profile>
  126. <id>prod</id>
  127. <properties>
  128. <profiles.active>prod</profiles.active>
  129. </properties>
  130. </profile>
  131. </profiles>
  132. </project>