123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-selenium-business</artifactId>
- <version>2.3.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sikey-selenium-business-api</artifactId>
- <packaging>jar</packaging>
- <name>${project.artifactId}</name>
- <description>
- selenium 模块 API,暴露给其它模块调用
- </description>
- <dependencies>
- <dependency>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-common</artifactId>
- <version>2.3.0-SNAPSHOT</version>
- </dependency>
- <!-- 参数校验 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-validation</artifactId>
- </dependency>
- <!-- RPC 远程调用相关 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- </dependency>
- </dependencies>
- <build>
- <!-- 设置构建的 jar 包名 -->
- <finalName>${project.artifactId}</finalName>
- <pluginManagement>
- <plugins>
- <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
- <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-surefire-plugin.version}</version>
- </plugin>
- <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
- <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <annotationProcessorPaths>
- <path>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <version>${spring.boot.version}</version>
- </path>
- <path>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- </path>
- <path>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
- </path>
- </annotationProcessorPaths>
- <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
- <debug>false</debug>
- <compilerArgs>
- <arg>-parameters</arg>
- </compilerArgs>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <!-- 统一 revision 版本 -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <version>${flatten-maven-plugin.version}</version>
- <configuration>
- <flattenMode>oss</flattenMode>
- <updatePomFile>true</updatePomFile>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>flatten</goal>
- </goals>
- <id>flatten</id>
- <phase>process-resources</phase>
- </execution>
- <execution>
- <goals>
- <goal>clean</goal>
- </goals>
- <id>flatten.clean</id>
- <phase>clean</phase>
- </execution>
- </executions>
- </plugin>
- <!-- 关键:添加 spring-boot-maven-plugin -->
- <!--<plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring.boot.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>-->
- </plugins>
- </build>
- </project>
|