pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>edu.travel</groupId>
  6. <artifactId>edu-travel-service</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>edu-travel-service-debezium</artifactId>
  10. <packaging>jar</packaging>
  11. <name>edu-travel-service-debezium</name>
  12. <url>http://maven.apache.org</url>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.postgresql</groupId>
  23. <artifactId>postgresql</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-validation</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.alibaba.cloud</groupId>
  31. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>javax.servlet</groupId>
  43. <artifactId>javax.servlet-api</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.commons</groupId>
  51. <artifactId>commons-lang3</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>cn.hutool</groupId>
  55. <artifactId>hutool-all</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>fastjson</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>edu.travel</groupId>
  63. <artifactId>edu-travel-common-debezium</artifactId>
  64. <version>1.0-SNAPSHOT</version>
  65. </dependency>
  66. </dependencies>
  67. <profiles>
  68. <profile>
  69. <id>dev</id>
  70. <properties>
  71. <env>dev</env>
  72. <versionCode>${version}-SNAPSHOT</versionCode>
  73. <spark.compiler.score>compile</spark.compiler.score>
  74. </properties>
  75. <activation>
  76. <activeByDefault>true</activeByDefault>
  77. </activation>
  78. </profile>
  79. <profile>
  80. <id>prod</id>
  81. <properties>
  82. <env>prod</env>
  83. <versionCode>${version}</versionCode>
  84. <spark.compiler.score>provided</spark.compiler.score>
  85. </properties>
  86. </profile>
  87. </profiles>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-compiler-plugin</artifactId>
  93. <version>3.8.1</version>
  94. <configuration>
  95. <source>1.8</source>
  96. <target>1.8</target>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-resources-plugin</artifactId>
  102. <configuration>
  103. <delimiters>@</delimiters>
  104. <useDefaultDelimiters>false</useDefaultDelimiters>
  105. </configuration>
  106. </plugin>
  107. <!-- 打包插件 -->
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. </plugin>
  112. <!-- maven 打包时跳过测试 -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-surefire-plugin</artifactId>
  116. <configuration>
  117. <skipTests>true</skipTests>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. <resources>
  122. <resource>
  123. <directory>src/main/resources</directory>
  124. <!--开启过滤,用指定的参数替换directory下的文件中的参数-->
  125. <filtering>true</filtering>
  126. </resource>
  127. </resources>
  128. </build>
  129. </project>