pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.9.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>cn.superdesk</groupId>
  12. <artifactId>superdesk-sync2es</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <properties>
  15. <java.version>8</java.version>
  16. <spring-boot.version>2.1.9.RELEASE</spring-boot.version>
  17. <mybatis.plus.version>3.4.3</mybatis.plus.version>
  18. <mybatis.plus.generator.version>3.4.1</mybatis.plus.generator.version>
  19. <mysql.version>8.0.30</mysql.version>
  20. <hutool.version>5.8.11</hutool.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.data</groupId>
  25. <artifactId>spring-data-elasticsearch</artifactId>
  26. <version>3.1.9.RELEASE</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-configuration-processor</artifactId>
  35. <optional>true</optional>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.projectlombok</groupId>
  39. <artifactId>lombok</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-test</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.alibaba.fastjson2</groupId>
  49. <artifactId>fastjson2</artifactId>
  50. <version>2.0.43</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>cn.superdesk</groupId>
  54. <artifactId>canal2kafka-spring-boot-starter</artifactId>
  55. <version>0.0.1-SNAPSHOT</version>
  56. </dependency>
  57. </dependencies>
  58. <profiles>
  59. <!--开发环境 -->
  60. <profile>
  61. <id>dev</id>
  62. <properties>
  63. <spring.profiles.active>dev</spring.profiles.active>
  64. </properties>
  65. <activation>
  66. <activeByDefault>true</activeByDefault>
  67. </activation>
  68. </profile>
  69. <!--测试环境 -->
  70. <profile>
  71. <id>test</id>
  72. <properties>
  73. <spring.profiles.active>test</spring.profiles.active>
  74. </properties>
  75. </profile>
  76. <!--生产环境 -->
  77. <profile>
  78. <id>prd</id>
  79. <properties>
  80. <spring.profiles.active>prd</spring.profiles.active>
  81. </properties>
  82. </profile>
  83. </profiles>
  84. <build>
  85. <finalName>${project.artifactId}</finalName>
  86. <resources>
  87. <resource>
  88. <directory>src/main/resources</directory>
  89. <excludes>
  90. <exclude>*.yml</exclude>
  91. </excludes>
  92. </resource>
  93. <resource>
  94. <directory>src/main/resources</directory>
  95. <includes>
  96. <include>application.yml</include>
  97. <include>application-${spring.profiles.active}.yml</include>
  98. </includes>
  99. <filtering>true</filtering>
  100. </resource>
  101. </resources>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-compiler-plugin</artifactId>
  106. <version>3.9.0</version>
  107. <configuration>
  108. <source>8</source> <!-- depending on your project -->
  109. <target>8</target> <!-- depending on your project -->
  110. <annotationProcessorPaths>
  111. <path>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. <version>${lombok.version}</version>
  115. </path>
  116. <!-- other annotation processors -->
  117. <path>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-configuration-processor</artifactId>
  120. <version>${spring-boot.version}</version>
  121. </path>
  122. </annotationProcessorPaths>
  123. </configuration>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-resources-plugin</artifactId>
  128. <configuration>
  129. <delimiters>@</delimiters>
  130. <useDefaultDelimiters>false</useDefaultDelimiters>
  131. </configuration>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-maven-plugin</artifactId>
  136. <configuration>
  137. <excludes>
  138. <exclude>
  139. <groupId>org.projectlombok</groupId>
  140. <artifactId>lombok</artifactId>
  141. </exclude>
  142. </excludes>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. </project>