pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. </dependencies>
  39. <build>
  40. <finalName>${project.artifactId}</finalName>
  41. <resources>
  42. <resource>
  43. <directory>src/main/resources/</directory>
  44. <filtering>true</filtering>
  45. <includes>
  46. <include>**/*.properties</include>
  47. </includes>
  48. </resource>
  49. <resource>
  50. <directory>src/main/resources/</directory>
  51. <filtering>true</filtering>
  52. </resource>
  53. </resources>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-maven-plugin</artifactId>
  58. <version>2.0.5.RELEASE</version>
  59. <executions>
  60. <execution>
  61. <goals>
  62. <goal>repackage</goal>
  63. </goals>
  64. </execution>
  65. </executions>
  66. <configuration>
  67. <mainClass>com.energy.manage.service.ManageAppApplication</mainClass>
  68. </configuration>
  69. </plugin>
  70. <!-- Compiler 插件, 设定JDK版本 -->
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-compiler-plugin</artifactId>
  74. <version>${maven-compiler-plugin.version}</version>
  75. <configuration>
  76. <source>${java.version}</source>
  77. <target>${java.version}</target>
  78. <encoding>utf-8</encoding>
  79. <showWarnings>true</showWarnings>
  80. <compilerArguments>
  81. <endorseddirs>${endorsed.dir}</endorseddirs>
  82. </compilerArguments>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-resources-plugin</artifactId>
  88. <version>2.6</version>
  89. <configuration>
  90. <encoding>UTF-8</encoding>
  91. <!-- 过滤后缀文件 -->
  92. <nonFilteredFileExtensions>
  93. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  94. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  95. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  96. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  97. </nonFilteredFileExtensions>
  98. </configuration>
  99. </plugin>
  100. </plugins>
  101. </build>
  102. <!-- 配置环境 -->
  103. <profiles>
  104. <profile>
  105. <id>dev</id>
  106. <properties>
  107. <profiles.active>dev</profiles.active>
  108. </properties>
  109. <activation>
  110. <activeByDefault>true</activeByDefault>
  111. </activation>
  112. </profile>
  113. <profile>
  114. <id>test</id>
  115. <properties>
  116. <profiles.active>test</profiles.active>
  117. </properties>
  118. </profile>
  119. <profile>
  120. <id>prod</id>
  121. <properties>
  122. <profiles.active>prod</profiles.active>
  123. </properties>
  124. </profile>
  125. </profiles>
  126. </project>