pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <groupId>cn.sikey.cloud</groupId>
  7. <artifactId>sikey-selenium-business</artifactId>
  8. <version>2.3.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sikey-selenium-business-api</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>
  15. selenium 模块 API,暴露给其它模块调用
  16. </description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.sikey.cloud</groupId>
  20. <artifactId>sikey-common</artifactId>
  21. <version>2.3.0-SNAPSHOT</version>
  22. </dependency>
  23. <!-- 参数校验 -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-validation</artifactId>
  27. </dependency>
  28. <!-- RPC 远程调用相关 -->
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-openfeign</artifactId>
  32. </dependency>
  33. </dependencies>
  34. <build>
  35. <!-- 设置构建的 jar 包名 -->
  36. <finalName>${project.artifactId}</finalName>
  37. <pluginManagement>
  38. <plugins>
  39. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  40. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-surefire-plugin</artifactId>
  44. <version>${maven-surefire-plugin.version}</version>
  45. </plugin>
  46. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  47. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-compiler-plugin</artifactId>
  51. <version>${maven-compiler-plugin.version}</version>
  52. <configuration>
  53. <annotationProcessorPaths>
  54. <path>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-configuration-processor</artifactId>
  57. <version>${spring.boot.version}</version>
  58. </path>
  59. <path>
  60. <groupId>org.projectlombok</groupId>
  61. <artifactId>lombok</artifactId>
  62. <version>${lombok.version}</version>
  63. </path>
  64. <path>
  65. <groupId>org.mapstruct</groupId>
  66. <artifactId>mapstruct-processor</artifactId>
  67. <version>${mapstruct.version}</version>
  68. </path>
  69. </annotationProcessorPaths>
  70. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  71. <debug>false</debug>
  72. <compilerArgs>
  73. <arg>-parameters</arg>
  74. </compilerArgs>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. </pluginManagement>
  79. <plugins>
  80. <!-- 统一 revision 版本 -->
  81. <plugin>
  82. <groupId>org.codehaus.mojo</groupId>
  83. <artifactId>flatten-maven-plugin</artifactId>
  84. <version>${flatten-maven-plugin.version}</version>
  85. <configuration>
  86. <flattenMode>oss</flattenMode>
  87. <updatePomFile>true</updatePomFile>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>flatten</goal>
  93. </goals>
  94. <id>flatten</id>
  95. <phase>process-resources</phase>
  96. </execution>
  97. <execution>
  98. <goals>
  99. <goal>clean</goal>
  100. </goals>
  101. <id>flatten.clean</id>
  102. <phase>clean</phase>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <!-- 关键:添加 spring-boot-maven-plugin -->
  107. <!--<plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. <version>${spring.boot.version}</version>
  111. <executions>
  112. <execution>
  113. <goals>
  114. <goal>repackage</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>-->
  119. </plugins>
  120. </build>
  121. </project>