Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven- compiler-

文章描述了在使用ApacheMaven3.2.1时遇到的编译器插件执行未覆盖到生命周期配置的问题,涉及`maven-compiler-plugin`版本3.8.1,特别是`testCompile`和`compile`目标,以及依赖项`maven-model`的版本2.13.5下载失败,因为HTTPS要求未满足。

Multiple annotations found at this line:
	- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (execution: default-testCompile, phase: test-compile)
	- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (execution: default-compile, phase: compile)
	- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one 
	 of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.1 -> org.apache.maven:maven-plugin-api:jar:3.0 -> 
	 org.apache.maven:maven-model:jar:2.13.5: ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-model:jar:2.13.5: ArtifactResolutionException: Failure to transfer 
	 org.apache.maven:maven-model:pom:2.13.5 from http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or 
	 updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-model:pom:2.13.5 from/to central (http://repo1.maven.org/maven2/): Failed to transfer http://repo1.maven.org/maven2/
	 org/apache/maven/maven-model/2.13.5/maven-model-2.13.5.pom. Error code 501, HTTPS Required
	- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or 
	 one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-model:jar:2.13.5, org.sonatype.sisu:sisu-inject-bean:jar:2.13.5, org.apache.maven:maven-
	 settings:jar:2.13.5, org.apache.maven:maven-settings-builder:jar:2.13.5, org.apache.maven:maven-repository-metadata:jar:2.13.5, org.apache.maven:maven-model-builder:jar:2.13.5, org.apache.maven:maven-
	 aether-provider:jar:2.13.5, org.sonatype.aether:aether-spi:jar:2.13.5: Failure to transfer org.apache.maven:maven-model:jar:2.13.5 from http://repo1.maven.org/maven2/ was cached in the local repository, 
	 resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-model:jar:2.13.5 from/to central 
	 (http://repo1.maven.org/maven2/): Failed to transfer http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.13.5/maven-model-2.13.5.jar. Error code 501, HTTPS Required

D:\apache-maven-3.2.1\conf

lifecycle-mapping-metadata.xml

        <pluginExecution>
            <pluginExecutionFilter>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <versionRange>[0.0.1,)</versionRange>
                <goals>
                    <goal>test-compile</goal>
                    <goal>compile</goal>
                </goals>
            </pluginExecutionFilter>
            <action>
                <ignore/>
            </action>
        </pluginExecution>

pom报错 !Dependency ' org. springframework. boot: spring-boot-starter异nc:' not found :109 !Dependency ' org. springframework. boot: spring-boot-starterasync:' not found :109 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :146 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :146 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :147 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :147 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :148 !Dependency ' org. modelMapper: modelMapper:3.1.1' not found :148 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :153 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :153 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :154 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :154 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :155 !Dependency ' cn. hutool: hutool-all:5.8.20' not found :155 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :167 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :167 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :168 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :168 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :169 !Dependency ' commonsfileupload: commonsfileupload:1.5' not found :169 !Dependency ' com. google. guava: guava:31.1-jre' not found :176 !Dependency ' com. google. guava: guava:31.1-jre' not found :176 !Dependency ' org. apache. poi: po i:5.2.3' not found :182 !Dependency ' org. apache. po i:5.2.3' not found :182 Dependency'org.apache.poipoi:5.2.3'not found:183 Dependency'org.apache.poipoi:5.2.3'not found:183 Dependency'org.apache.poipoi:5.2.3'not found:184 Dependency'org.apache.poipoi:5.2.3'not found:184 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:187 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:187 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:188 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:188 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:189 Dependency'org.apache.poipoi-ooxml:5.2.3'not found:189 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:194 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:194 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:195 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:195 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:196 Dependency'com.itextpdf.itextpdf:5.5.13.3'not found:196 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:202 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:202 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:203 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:203 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:204 Dependency'io.jsonwebtoken:jjwtapi:0.11.5'not found:204 Dependency'io.jsonwebtoken:jjwtimpl:0.11.5'not found:207 Dependency'io.jsonwebtoken:jjwtimpl:0.11.5'not found:207 !Dependency'io.jsonwebtoken:jjwt-impl:0.11.5'not found:209 !Dependency'io.jsonwebtoken:jjwt-impl:0.11.5'not found:209 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:213 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:213 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:214 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:214 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:215 !Dependency'io.jsonwebtoken:jjwt-jackson:0.11.5'not found:215 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:222 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:222 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:223 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:223 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:224 !Dependency'org.springdoc:springdoc-openapi-:3.0.0'not found:224 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:230 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:230 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:231 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:231 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:232 !Dependency'com.github.ben-manes.caffeine:caffeine:3.1.6'not found:232 !Dependency'org.webjars:jQuery:3.6.0'not found:260 !Dependency'org.webjars:jQuery:3.6.0'not found:260 !Dependency'org.webjars:font awesome:6.1.1'not found:266 !Dependency'org.webjars:font awesome:6.1.1'not found:266 !Dependency'org.webjars:font awesome:6.1.1'not found:267 !Dependency 'org.webjars:charts:3.7.1' not found:273 !Dependency 'org.webjars:charts:3.7.1' not found:274 !Dependency 'org.webjars:charts:3.7.1' not found:274 !Dependency 'org.webjars:webjars-位置-core:0.50' not found:281 !Dependency 'org.webjars:webjars-位置-core:0.50' not found:281 !Plugin 'org.eclipse.m2e:lifecycle-mapping:1.0.0' not found:576 !Plugin 'org.eclipse.m2e:lifecycle-mapping:1.0.0' not found:577 !Plugin 'org.eclipse.m2e:lifecycle-mapping:1.0.0' not found:578 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:722 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:722 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:723 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:723 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:724 !Dependency 'io.gatling.highcharts:gatling-charts-highcharts:3.9.5' not found:724 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:772 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:772 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:773 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:773 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:774 !Plugin 'org.sonarsource.scanner.maven:sonar-maven插in:3.9.1.2184' not found:774 !Cannot resolve symbol ' sonar':779 !Plugin 'com.github.spotbugs:spotbugs-maven插in:4.7.3.0' not found:787 !Plugin 'com.github.spotbugs:spotbugs-maven插in:4.7.3.0' not found:787 !Plugin 'com.github.spotbugs:spotbugs-maven插in:4.7.3.0' not found:788 !Plugin 'com.github.spotbugs:spotbugs-maven插in:4.7.3.0' not found:788 Plugin'com.github.spotbugs:spotbugs-maven插in:4.7.3.0'not found:789 Plugin'com.github.spotbugs:spotbugs-maven插in:4.7.3.0'not found:789 Cannot resolve symbol ' check':799 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:808 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:808 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:809 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:809 Cannot resolve symbol ' check':820 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:829 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:829 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:830 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:830 Cannot resolve symbol ' check':841 Plugin'org.apache.maven. plugins:maven-surefire-report插in:2.22.2'not found:964 Plugin'org.apache.maven. plugins:maven-surefire-report插in:2.22.2'not found:964 Plugin'org.apache.maven. plugins:maven-surefire-report插in:2.22.2'not found:965 Plugin'org.apache.maven. plugins:maven-surefire-report插in:2.22.2'not found:965 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:971 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:971 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:972 Plugin'org.apache.maven. plugins:maven-pmd插in:3.19.0'not found:972 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:983 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:983 Plugin'org.apache.maven. plugins:maven-checkstyle插in:3.2.0'not found:984 Plugin' org. apache. maven. plugins: maven-checkstyle插in:3.2.0' not found:984 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:993 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:993 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:994 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:994 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:995 Plugin' com. github. spotbugs: spotbugs-maven插in:4.7.3.0' not found:995 修复pom文件 <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <!-- Spring Boot 父项目 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.14</version> <relativePath/> </parent> <groupId>com.drivingschool</groupId> <artifactId>driving-school-system</artifactId> <version>2.0.0</version> <name>driving-school-system</name> <description>驾校学员管理系统</description> <properties> <!-- Java版本 --> <java.version>11</java.version> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <!-- 依赖版本 --> <mysql.version>8.0.33</mysql.version> <h2.version>2.1.214</h2.version> <lombok.version>1.18.28</lombok.version> <modelmapper.version>3.1.1</modelmapper.version> <hutool.version>5.8.20</hutool.version> <poi.version>5.2.3</poi.version> <itextpdf.version>5.5.13.3</itextpdf.version> <javax.mail.version>1.6.2</javax.mail.version> <jakarta.validation.version>3.0.2</jakarta.validation.version> <swagger.version>3.0.0</swagger.version> <jjwt.version>0.11.5</jjwt.version> <logback.version>1.2.12</logback.version> <commons-io.version>2.11.0</commons-io.version> <commons-fileupload.version>1.5</commons-fileupload.version> <caffeine.version>3.1.6</caffeine.version> <guava.version>31.1-jre</guava.version> <slf4j.version>1.7.36</slf4j.version> </properties> <dependencies> <!-- ========== Spring Boot Starters ========== --> <!-- Web支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- Spring Security安全框架 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <!-- Thymeleaf模板引擎 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!-- Thymeleaf与Spring Security整合 --> <dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-springsecurity5</artifactId> </dependency> <!-- JPA数据持久化 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <!-- 数据验证 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> <!-- 邮件支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> <!-- 缓存支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> <!-- AOP支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <!-- 异步处理 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-async</artifactId> </dependency> <!-- ========== 数据库相关 ========== --> <!-- MySQL驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.version}</version> <scope>runtime</scope> </dependency> <!-- H2数据库(开发测试用) --> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${h2.version}</version> <scope>runtime</scope> </dependency> <!-- 数据库连接池 --> <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> </dependency> <!-- ========== 工具库 ========== --> <!-- Lombok代码简化 --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> <optional>true</optional> </dependency> <!-- ModelMapper对象映射 --> <dependency> <groupId>org.modelmapper</groupId> <artifactId>modelmapper</artifactId> <version>${modelmapper.version}</version> </dependency> <!-- Hutool工具包 --> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>${hutool.version}</version> </dependency> <!-- Apache Commons IO --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> </dependency> <!-- Apache Commons FileUpload --> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>${commons-fileupload.version}</version> </dependency> <!-- Guava工具库 --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>${guava.version}</version> </dependency> <!-- ========== 数据处理 ========== --> <!-- Apache POI Excel处理 --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency> <!-- iText PDF生成 --> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>${itextpdf.version}</version> </dependency> <!-- ========== 安全与认证 ========== --> <!-- JWT令牌 --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>${jjwt.version}</version> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-impl</artifactId> <version>${jjwt.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-jackson</artifactId> <version>${jjwt.version}</version> <scope>runtime</scope> </dependency> <!-- ========== API文档 ========== --> <!-- SpringDoc OpenAPI --> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>${swagger.version}</version> </dependency> <!-- ========== 缓存 ========== --> <!-- Caffeine缓存 --> <dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> <version>${caffeine.version}</version> </dependency> <!-- ========== 日志 ========== --> <!-- SLF4J日志门面 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>${logback.version}</version> </dependency> <!-- ========== 前端依赖 ========== --> <!-- Bootstrap WebJar --> <dependency> <groupId>org.webjars</groupId> <artifactId>bootstrap</artifactId> <version>5.1.3</version> </dependency> <!-- jQuery WebJar --> <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.6.0</version> </dependency> <!-- Font Awesome WebJar --> <dependency> <groupId>org.webjars</groupId> <artifactId>font-awesome</artifactId> <version>6.1.1</version> </dependency> <!-- Chart.js WebJar --> <dependency> <groupId>org.webjars</groupId> <artifactId>chartjs</artifactId> <version>3.7.1</version> </dependency> <!-- WebJars Locator --> <dependency> <groupId>org.webjars</groupId> <artifactId>webjars-locator-core</artifactId> <version>0.50</version> </dependency> <!-- ========== 测试依赖 ========== --> <!-- Spring Boot测试 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- Spring Security测试 --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-test</artifactId> <scope>test</scope> </dependency> <!-- JUnit 5 --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <scope>test</scope> </dependency> <!-- Mockito测试框架 --> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-junit-jupiter</artifactId> <scope>test</scope> </dependency> <!-- 测试数据库 --> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${h2.version}</version> <scope>test</scope> </dependency> <!-- ========== 开发工具 ========== --> <!-- Spring Boot开发工具(热部署) --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <!-- ========== 其他 ========== --> <!-- Java Mail API --> <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>${javax.mail.version}</version> </dependency> <!-- Jakarta Validation API --> <dependency> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> <version>${jakarta.validation.version}</version> </dependency> <!-- Servlet API --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <!-- 资源过滤配置 --> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.properties</include> <include>**/*.yml</include> <include>**/*.xml</include> <include>**/*.sql</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> <exclude>**/*.properties</exclude> <exclude>**/*.yml</exclude> <exclude>**/*.xml</exclude> <exclude>**/*.sql</exclude> </excludes> </resource> </resources> <plugins> <!-- Spring Boot Maven插件 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> </excludes> <!-- 指定主类 --> <mainClass>com.drivingschool.DrivingSchoolApplication</mainClass> <!-- 构建可执行JAR --> <layout>JAR</layout> <!-- 包含所有依赖 --> <includes> <include> <groupId>non-exists</groupId> <artifactId>non-exists</artifactId> </include> </includes> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> <!-- Maven编译插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>UTF-8</encoding> <annotationProcessorPaths> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> <!-- 资源处理插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.3.0</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <!-- 测试插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> <configuration> <skipTests>false</skipTests> <includes> <include>**/*Test.java</include> <include>**/*Tests.java</include> </includes> <excludes> <exclude>**/*IntegrationTest.java</exclude> </excludes> </configuration> </plugin> <!-- JaCoCo测试覆盖率插件 --> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.8</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> <configuration> <excludes> <exclude>**/model/*</exclude> <exclude>**/dto/*</exclude> <exclude>**/config/*</exclude> <exclude>**/DrivingSchoolApplication.class</exclude> </excludes> </configuration> </plugin> <!-- Docker构建插件(可选) --> <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> <version>1.4.13</version> <executions> <execution> <id>default</id> <goals> <goal>build</goal> </goals> </execution> <execution> <id>tag</id> <goals> <goal>tag</goal> </goals> <configuration> <tag>${project.version}</tag> </configuration> </execution> <execution> <id>push</id> <goals> <goal>push</goal> </goals> <configuration> <tag>${project.version}</tag> </configuration> </execution> </executions> <configuration> <repository>drivingschool/${project.artifactId}</repository> <tag>${project.version}</tag> <buildArgs> <JAR_FILE>${project.build.finalName}.jar</JAR_FILE> </buildArgs> </configuration> </plugin> <!-- 源码打包插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- Javadoc插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <encoding>UTF-8</encoding> <docencoding>UTF-8</docencoding> <charset>UTF-8</charset> </configuration> </plugin> </plugins> <!-- 插件管理 --> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <versionRange>[0.8.6,)</versionRange> <goals> <goal>prepare-agent</goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> <!-- 依赖管理 --> <dependencyManagement> <dependencies> <!-- Spring Cloud依赖管理(可选,用于微服务扩展) --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>2021.0.8</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <!-- 项目信息 --> <organization> <name>Driving School Management</name> <url>https://www.drivingschool.com</url> </organization> <!-- 开发者信息 --> <developers> <developer> <id>developer1</id> <name>张三</name> <email>zhangsan@example.com</email> <organization>驾校管理系统开发组</organization> <roles> <role>架构师</role> <role>开发工程师</role> </roles> <timezone>+8</timezone> </developer> <developer> <id>developer2</id> <name>李四</name> <email>lisi@example.com</email> <organization>驾校管理系统开发组</organization> <roles> <role>后端开发工程师</role> </roles> <timezone>+8</timezone> </developer> </developers> <!-- 许可证信息 --> <licenses> <license> <name>Apache License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0</url> <distribution>repo</distribution> </license> </licenses> <!-- 版本控制系统 --> <scm> <connection>scm:git:https://github.com/yourusername/driving-school-system.git</connection> <developerConnection>scm:git:https://github.com/yourusername/driving-school-system.git</developerConnection> <url>https://github.com/yourusername/driving-school-system</url> <tag>v${project.version}</tag> </scm> <!-- 问题追踪 --> <issueManagement> <system>GitHub Issues</system> <url>https://github.com/yourusername/driving-school-system/issues</url> </issueManagement> <!-- 持续集成 --> <ciManagement> <system>GitHub Actions</system> <url>https://github.com/yourusername/driving-school-system/actions</url> </ciManagement> <!-- 多环境配置 --> <profiles> <!-- 开发环境 --> <profile> <id>dev</id> <properties> <spring.profiles.active>dev</spring.profiles.active> <env>dev</env> <skipTests>false</skipTests> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <!-- 测试环境 --> <profile> <id>test</id> <properties> <spring.profiles.active>test</spring.profiles.active> <env>test</env> <skipTests>true</skipTests> </properties> </profile> <!-- 生产环境 --> <profile> <id>prod</id> <properties> <spring.profiles.active>prod</spring.profiles.active> <env>prod</env> <skipTests>true</skipTests> </properties> </profile> <!-- 性能测试 --> <profile> <id>perf</id> <properties> <spring.profiles.active>perf</spring.profiles.active> <env>perf</env> <skipTests>false</skipTests> </properties> <dependencies> <dependency> <groupId>io.gatling.highcharts</groupId> <artifactId>gatling-charts-highcharts</artifactId> <version>3.9.5</version> <scope>test</scope> </dependency> </dependencies> </profile> <!-- Docker构建 --> <profile> <id>docker</id> <properties> <skipDocker>false</skipDocker> </properties> <build> <plugins> <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> <version>1.4.13</version> <executions> <execution> <id>default</id> <goals> <goal>build</goal> </goals> <configuration> <repository>drivingschool/${project.artifactId}</repository> <tag>${project.version}</tag> <buildArgs> <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE> </buildArgs> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- 源码分析 --> <profile> <id>analysis</id> <properties> <skipTests>true</skipTests> </properties> <build> <plugins> <!-- SonarQube分析 --> <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.9.1.2184</version> <executions> <execution> <phase>verify</phase> <goals> <goal>sonar</goal> </goals> </execution> </executions> </plugin> <!-- SpotBugs代码检查 --> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> <version>4.7.3.0</version> <configuration> <effort>Max</effort> <threshold>Low</threshold> <xmlOutput>true</xmlOutput> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <!-- Checkstyle代码规范检查 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>3.2.0</version> <configuration> <configLocation>checkstyle.xml</configLocation> <encoding>UTF-8</encoding> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <!-- PMD代码质量检查 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>3.19.0</version> <configuration> <rulesets> <ruleset>rulesets/java/quickstart.xml</ruleset> </rulesets> <printFailingErrors>true</printFailingErrors> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <!-- 项目仓库 --> <repositories> <!-- Maven中央仓库 --> <repository> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> <!-- Spring仓库 --> <repository> <id>spring-releases</id> <name>Spring Releases</name> <url>https://repo.spring.io/release</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> <!-- Spring Milestone仓库 --> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> <!-- Spring Snapshots仓库 --> <repository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <!-- 阿里云仓库(国内加速) --> <repository> <id>aliyun</id> <name>Aliyun Maven</name> <url>https://maven.aliyun.com/repository/public</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <!-- 插件仓库 --> <pluginRepositories> <pluginRepository> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <!-- Spring插件仓库 --> <pluginRepository> <id>spring-plugins</id> <name>Spring Plugins</name> <url>https://repo.spring.io/plugins-release</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> <!-- 报告 --> <reporting> <plugins> <!-- JaCoCo测试覆盖率报告 --> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.8</version> <reportSets> <reportSet> <reports> <report>report</report> </reports> </reportSet> </reportSets> </plugin> <!-- Javadoc报告 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.4.1</version> <configuration> <encoding>UTF-8</encoding> <docencoding>UTF-8</docencoding> <charset>UTF-8</charset> </configuration> </plugin> <!-- Surefire测试报告 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.22.2</version> </plugin> <!-- PMD报告 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>3.19.0</version> <configuration> <rulesets> <ruleset>rulesets/java/quickstart.xml</ruleset> </rulesets> </configuration> </plugin> <!-- Checkstyle报告 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>3.2.0</version> <configuration> <configLocation>checkstyle.xml</configLocation> <encoding>UTF-8</encoding> </configuration> </plugin> <!-- SpotBugs报告 --> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> <version>4.7.3.0</version> <configuration> <effort>Max</effort> <threshold>Low</threshold> </configuration> </plugin> </plugins> </reporting> </project>
最新发布
12-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

13805029595

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值