【Idea中maven项目jdk编译version总是跳到1.5版本解决方案-Warning:java: 源值1.5已过时, 将在未来所有发行版中删除】

本文介绍了解决IDEA中Maven项目Java版本反复回退至1.5的问题。通过两种方法实现Java版本的持久设置,确保项目稳定运行在1.8环境下。

在这里插入图片描述

🚀 算法题 🚀

🌲 算法刷题专栏 | 面试必备算法 | 面试高频算法 🍀
🌲 越难的东西,越要努力坚持,因为它具有很高的价值,算法就是这样✨
🌲 作者简介:硕风和炜,优快云-Java领域优质创作者🏆,保研|国家奖学金|高中学习JAVA|大学完善JAVA开发技术栈|面试刷题|面经八股文|经验分享|好用的网站工具分享💎💎💎
🌲 恭喜你发现一枚宝藏博主,赶快收入囊中吧🌻
🌲 人生如棋,我愿为卒,行动虽慢,可谁曾见我后退一步?🎯🎯

🚀 算法题 🚀

在这里插入图片描述

问题描述

每次修改pom文件之后,idea自动扫描一遍,然后发现默认的compile级别跳到1.5/5.0. 每次手动去setting里修改compile很费事,我们需要一个一劳永逸的解决方案。

Warning:java: 源值1.5已过时, 将在未来所有发行版中删除
Warning:java: 目标值1.5已过时, 将在未来所有发行版中删除
Warning:java: 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。

在这里插入图片描述

解决方案1

先打开Project-Settings->Modules->要修改的项目->设置Sources版本为8即可。
在这里插入图片描述
然后打开Settings设置Java Compiler中项目的版本为1.8
在这里插入图片描述

问题:可以解决问题,但是之后当我们再增加模块,或者修改项目,关闭重启,再次运行项目的时候,又出现了同样的问题。所以我们需要一个彻底的解决方案,请看方案二:

解决方案2:

项目设置的Java编译环境是1.8,但是修改之后,项目重启之后又恢复为1.5,每次修改太过麻烦,直接在父目录下配置Maven环境下Java编译的环境变量

解决方案:
在我们的pom.xml文件中设置我们Maven编译环境时候Java的版本

<properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.compiler.source>1.8</maven.compiler.source>
     <maven.compiler.target>1.8</maven.compiler.target>
     <java.version>1.8</java.version>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <!--配置Maven中Java的编译版本 -->
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>

添加成功
在这里插入图片描述

重新启动测试成功。

💬 共勉

最后,我想和大家分享一句一直激励我的座右铭,希望可以与大家共勉!

在这里插入图片描述

在这里插入图片描述

D:\Java\jdk-21.0.2\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\java\code\GApiGCES_JDK21 -Djansi.passthrough=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.resolver.transport=wagon -Dmaven.home=D:/java/maven/apache-maven-3.9.0 -Dclassworlds.conf=D:\java\maven\apache-maven-3.9.0\bin\m2.conf "-Dmaven.ext.class.path=D:\tools\IntelliJ IDEA 2025.1.3\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\tools\IntelliJ IDEA 2025.1.3\lib\idea_rt.jar=51689" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\java\maven\apache-maven-3.9.0\boot\plexus-classworlds-2.6.0.jar;D:\java\maven\apache-maven-3.9.0\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2025.1.3 -s D:\java\code\GApiGCES_JDK21\settings.xml -Dmaven.repo.local=D:\java\maven\repository package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] GaiaApiGC [pom] [INFO] gaia-apigc-i18n [jar] [INFO] gaia-apigc-config [jar] [INFO] gaia-apigc-standard [pom] [INFO] gaia-apigc-domain [jar] [INFO] gaia-apigc-infrastructure [jar] [INFO] gaia-apigc-api [jar] [INFO] gaia-apigc-client [jar] [INFO] gaia-apigc-service [jar] [INFO] gaia-apigc-adapter [jar] [INFO] gaia-apigc-app [jar] [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-parent >--------------- [INFO] Building GaiaApiGC 1.0.0-SNAPSHOT [1/11] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-parent --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-parent --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-parent --- [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-parent --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-parent --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-parent --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] ---------------< com.huawei.cbgit.gaia:gaia-apigc-i18n >---------------- [INFO] Building gaia-apigc-i18n 1.0.0-SNAPSHOT [2/11] [INFO] from gaia-apigc-i18n\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-i18n --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-i18n --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-i18n --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-i18n --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-i18n --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-i18n --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-i18n --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-i18n --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-i18n --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-i18n --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-i18n --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-i18n --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-i18n\target\gaia-apigc-i18n-1.0.0-SNAPSHOT.jar [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-config >--------------- [INFO] Building gaia-apigc-config 1.0.0-SNAPSHOT [3/11] [INFO] from gaia-apigc-config\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-config --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-config\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-config\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-config\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-config --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-config --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-config --- [INFO] Copying 10 resources from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-config --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-config --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-config --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-config --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-config\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-config --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-config --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-config --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-config --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-config\target\gaia-apigc-config-1.0.0-SNAPSHOT.jar [INFO] [INFO] -------------< com.huawei.cbgit.gaia:gaia-apigc-standard >-------------- [INFO] Building gaia-apigc-standard 1.0.0-SNAPSHOT [4/11] [INFO] from gaia-apigc-standard\pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-standard --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-standard --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-standard --- [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-standard --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-standard --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-standard --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-domain >--------------- [INFO] Building gaia-apigc-domain 1.0.0-SNAPSHOT [5/11] [INFO] from gaia-apigc-standard\gaia-apigc-domain\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-domain --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-domain --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-domain --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-domain --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-domain --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed source code. [INFO] Compiling 100 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-domain/src/main/java/com/huawei/it/gaia/apigc/domain/common/consts/ApplicationAssetsConfigEnum.java: 某些输入文件使用或覆盖了已过时的 API。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-domain/src/main/java/com/huawei/it/gaia/apigc/domain/common/consts/ApplicationAssetsConfigEnum.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-domain/src/main/java/com/huawei/it/gaia/apigc/domain/utils/ThreadLocalUtils.java: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\src\main\java\com\huawei\it\gaia\apigc\domain\utils\ThreadLocalUtils.java使用了未经检查或不安全的操作。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-domain/src/main/java/com/huawei/it/gaia/apigc/domain/utils/ThreadLocalUtils.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-domain --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-domain --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-domain --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-domain --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-domain --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-domain --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-domain --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-domain\target\gaia-apigc-domain-1.0.0-SNAPSHOT.jar [INFO] [INFO] ----------< com.huawei.cbgit.gaia:gaia-apigc-infrastructure >----------- [INFO] Building gaia-apigc-infrastructure 1.0.0-SNAPSHOT [6/11] [INFO] from gaia-apigc-standard\gaia-apigc-infrastructure\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-infrastructure --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-infrastructure --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-infrastructure --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-infrastructure --- [INFO] Copying 43 resources from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-infrastructure --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 77 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-infrastructure/src/main/java/com/huawei/it/gaia/apigc/infrastructure/scheduledtask/TaskGateway.java: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\src\main\java\com\huawei\it\gaia\apigc\infrastructure\scheduledtask\TaskGateway.java使用或覆盖了已过时的 API。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-infrastructure/src/main/java/com/huawei/it/gaia/apigc/infrastructure/scheduledtask/TaskGateway.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-infrastructure/src/main/java/com/huawei/it/gaia/apigc/infrastructure/api/ApiGateway.java: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\src\main\java\com\huawei\it\gaia\apigc\infrastructure\api\ApiGateway.java使用了未经检查或不安全的操作。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-infrastructure/src/main/java/com/huawei/it/gaia/apigc/infrastructure/api/ApiGateway.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-infrastructure --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-infrastructure --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-infrastructure --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-infrastructure --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-infrastructure --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-infrastructure --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-infrastructure --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-infrastructure\target\gaia-apigc-infrastructure-1.0.0-SNAPSHOT.jar [INFO] [INFO] ----------------< com.huawei.cbgit.gaia:gaia-apigc-api >---------------- [INFO] Building gaia-apigc-api 1.0.0-SNAPSHOT [7/11] [INFO] from gaia-apigc-standard\gaia-apigc-api\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-api --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-api --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-api --- [INFO] [INFO] --- service-codegen:4.0.0.0:generate (model-generate) @ gaia-apigc-api --- [INFO] Use `inputSpec` tag to find yaml files. [INFO] Fuzzy search for path: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/resources/yamls/*.yaml [INFO] Fuzzy search. basePath=null, subPathOrFile=["D:\\java\\code\\GApiGCES_JDK21\\gaia-apigc-standard\\gaia-apigc-api","src","main","resources","yamls","*.yaml"] [INFO] Fuzzy search. basePath=D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api, subPathOrFile=["src","main","resources","yamls","*.yaml"] [INFO] Fuzzy search. basePath=D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src, subPathOrFile=["main","resources","yamls","*.yaml"] [INFO] Fuzzy search. basePath=D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main, subPathOrFile=["resources","yamls","*.yaml"] [INFO] Fuzzy search. basePath=D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources, subPathOrFile=["yamls","*.yaml"] [INFO] Fuzzy search. basePath=D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls, subPathOrFile=["*.yaml"] [INFO] All yaml file: [INFO] D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls\api-assets-his.yaml [INFO] D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls\common.yaml [INFO] D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls\health-check.yaml [INFO] D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls\schedule-task-v2.yaml [INFO] Use this file as base yaml and merge content. D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\main\resources\yamls\api-assets-his.yaml [INFO] Gen service code for jaxrs-cxf writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com/huawei/it/gaia/apigc/api/rest/model\ApiAssetsHisRequest.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com/huawei/it/gaia/apigc/api/rest/model\FilterVO.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com/huawei/it/gaia/apigc/api/rest/model\ScheduledTaskRequest.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com/huawei/it/gaia/apigc/api/rest/model\ParamsKeyValue.java [INFO] Tag add path:HealthCheckController Path:/HealthCheckController/v1/health/check/ [INFO] Tag add path:IApiAssetsHisService Path:/IApiAssetsHisService/v1/api-assets/his/{pageSize}/{curPage}/ [INFO] Tag add path:IScheduledTaskControllerService Path:/IScheduledTaskControllerService/v1/scheduled-task/edit/ [INFO] Tag add path:IScheduledTaskControllerService Path:/IScheduledTaskControllerService/v1/scheduled-task/execute/ [INFO] Tag add path:IScheduledTaskControllerService Path:/IScheduledTaskControllerService/v1/scheduled-task/list/ [INFO] Tag add path:IScheduledTaskControllerService Path:/IScheduledTaskControllerService/v1/scheduled-task/logs/{pageSize}/{pageNum}/ [INFO] Tag add path:IScheduledTaskControllerService Path:/IScheduledTaskControllerService/v1/scheduled-task/table/ [INFO] tag:IScheduledTaskControllerService's base path is /IScheduledTaskControllerService/v1/scheduled-task [INFO] tag:IApiAssetsHisService's base path is /IApiAssetsHisService/v1/api-assets/his [INFO] tag:HealthCheckController's base path is /HealthCheckController/v1/health/check [INFO] apiService=====D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/IApiAssetsHisService.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/IApiAssetsHisService.java [INFO] apiService=====D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/HealthCheckController.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/HealthCheckController.java [INFO] apiService=====D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/IScheduledTaskControllerService.java writing file D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api/src/main/java/com\huawei\it\gaia\apigc\api\rest\service/IScheduledTaskControllerService.java [INFO] Gen sdk code [INFO] Client code does not need to generate! [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-api --- [INFO] Copying 4 resources from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-api --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed source code. [INFO] Compiling 7 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-api --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-api --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-api --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-api --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-api --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-api --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-api --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-api\target\gaia-apigc-api-1.0.0-SNAPSHOT.jar [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-client >--------------- [INFO] Building gaia-apigc-client 1.0.0-SNAPSHOT [8/11] [INFO] from gaia-apigc-standard\gaia-apigc-client\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-client --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-client --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-client --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-client --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-client --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed source code. [INFO] Compiling 61 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-client/src/main/java/com/huawei/it/gaia/apigc/client/apigc/clouddragon/CloudDragonClient.java: 某些输入文件使用或覆盖了已过时的 API。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-client/src/main/java/com/huawei/it/gaia/apigc/client/apigc/clouddragon/CloudDragonClient.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-client/src/main/java/com/huawei/it/gaia/apigc/client/util/HttpClientUtils.java: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\src\main\java\com\huawei\it\gaia\apigc\client\util\HttpClientUtils.java使用了未经检查或不安全的操作。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-client/src/main/java/com/huawei/it/gaia/apigc/client/util/HttpClientUtils.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-client --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-client --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-client --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-client --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-client --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-client --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-client --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-client\target\gaia-apigc-client-1.0.0-SNAPSHOT.jar [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-service >-------------- [INFO] Building gaia-apigc-service 1.0.0-SNAPSHOT [9/11] [INFO] from gaia-apigc-standard\gaia-apigc-service\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-service --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-service --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-service --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-service --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-service --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 83 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [WARNING] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/api/assets/dto/ApiAssetsHisReqDTO.java:[19,1] Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type. [WARNING] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/transform/EamapDBDataChecker.java:[133,17] java.security 中的 java.security.AccessController 已过时, 且标记为待删除 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/api/assets/GetApiAssetsHisService.java: 某些输入文件使用或覆盖了已过时的 API。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/api/assets/GetApiAssetsHisService.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/transform/EamapDBDataChecker.java: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\src\main\java\com\huawei\it\gaia\apigc\service\transform\EamapDBDataChecker.java使用了未经检查或不安全的操作。 [INFO] /D:/java/code/GApiGCES_JDK21/gaia-apigc-standard/gaia-apigc-service/src/main/java/com/huawei/it/gaia/apigc/service/transform/EamapDBDataChecker.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-service --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-service --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-service --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-service --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-service --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-service --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-service --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-service\target\gaia-apigc-service-1.0.0-SNAPSHOT.jar [INFO] [INFO] --------------< com.huawei.cbgit.gaia:gaia-apigc-adapter >-------------- [INFO] Building gaia-apigc-adapter 1.0.0-SNAPSHOT [10/11] [INFO] from gaia-apigc-standard\gaia-apigc-adapter\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-adapter --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-adapter\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-adapter\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-adapter\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-adapter --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-adapter --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-adapter --- [INFO] Copying 1 resource from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-adapter --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 4 source files with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-adapter --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-adapter --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-adapter --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-adapter\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-adapter --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] No sources to compile [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-adapter --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-adapter --- [INFO] No tests to run. [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ gaia-apigc-adapter --- [INFO] Building jar: D:\java\code\GApiGCES_JDK21\gaia-apigc-standard\gaia-apigc-adapter\target\gaia-apigc-adapter-1.0.0-SNAPSHOT.jar [INFO] [INFO] ----------------< com.huawei.cbgit.gaia:gaia-apigc-app >---------------- [INFO] Building gaia-apigc-app 1.0.0-SNAPSHOT [11/11] [INFO] from gaia-apigc-app\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties:1.0.0:read-project-properties (default) @ gaia-apigc-app --- [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-app\package.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-app\api.cxf.properties [INFO] Quiet processing - ignoring properties cannot be loaded from File: D:\java\code\GApiGCES_JDK21\gaia-apigc-app\api.springmvc.properties [INFO] [INFO] --- gplus:3.0.0:addSources (default) @ gaia-apigc-app --- [INFO] [INFO] --- gplus:3.0.0:addTestSources (default) @ gaia-apigc-app --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ gaia-apigc-app --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-app\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ gaia-apigc-app --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 1 source file with javac [debug parameters target 21] to target\classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] [INFO] --- gplus:3.0.0:compile (default) @ gaia-apigc-app --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- dt4j-coverage:2.0.3:instrument (instrument) @ gaia-apigc-app --- [INFO] Not found any dt4j-coverage-maven-plugin report goal [aggregate-report] or [aggregate-report-diff] and skip operation collecting. [INFO] Skipped coverage. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ gaia-apigc-app --- [INFO] skip non existing resourceDirectory D:\java\code\GApiGCES_JDK21\gaia-apigc-app\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ gaia-apigc-app --- [WARNING] Parameter 'compilerVersion' (user property 'maven.compiler.compilerVersion') is deprecated: This parameter is no longer evaluated by the underlying compilers, instead the actual version of the javac binary is automatically retrieved. [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 1 source file with javac [debug parameters target 21] to target\test-classes [INFO] 由于在类路径中发现了一个或多个处理程序,因此启用了 批注处理。未来发行版javac 可能会禁用批注处理, 除非至少按名称指定了一个处理程序 (-processor), 或指定了搜索路径 (--processor-path, --processor-module-path), 或显式启用了批注处理 (-proc:only, -proc:full)。 可使用 -Xlint:-options 隐藏此消息。 可使用 -proc:none 禁用批注处理。 [INFO] [INFO] --- gplus:3.0.0:compileTests (default) @ gaia-apigc-app --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- surefire:3.0.0-M7:test (default-test) @ gaia-apigc-app --- [INFO] Using auto detected provider org.apache.maven.surefire.junit.JUnit3Provider [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for GaiaApiGC 1.0.0-SNAPSHOT: [INFO] [INFO] GaiaApiGC .......................................... SUCCESS [ 1.784 s] [INFO] gaia-apigc-i18n .................................... SUCCESS [ 1.315 s] [INFO] gaia-apigc-config .................................. SUCCESS [ 0.592 s] [INFO] gaia-apigc-standard ................................ SUCCESS [ 0.448 s] [INFO] gaia-apigc-domain .................................. SUCCESS [ 9.583 s] [INFO] gaia-apigc-infrastructure .......................... SUCCESS [ 2.927 s] [INFO] gaia-apigc-api ..................................... SUCCESS [ 2.321 s] [INFO] gaia-apigc-client .................................. SUCCESS [ 2.822 s] [INFO] gaia-apigc-service ................................. SUCCESS [ 3.295 s] [INFO] gaia-apigc-adapter ................................. SUCCESS [ 2.128 s] [INFO] gaia-apigc-app ..................................... FAILURE [ 3.548 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31.153 s [INFO] Finished at: 2025-11-12T17:25:55+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project gaia-apigc-app: Missing: [ERROR] ---------- [ERROR] 1) org.apache.maven.surefire:surefire-junit3:jar:3.0.0-M7 [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=3.0.0-M7 -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=3.0.0-M7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] ---------- [ERROR] 1 required artifact is missing. [ERROR] [ERROR] for artifact: [ERROR] org.apache.maven.surefire:surefire-junit3:jar:3.0.0-M7 [ERROR] [ERROR] from the specified remote repositories: [ERROR] huawei-product-maven-plugin (https://cmc.centralrepo.rnd.huawei.com/artifactory/product_maven/, releases=true, snapshots=true), [ERROR] huawei-central-plugin (https://cmc.centralrepo.rnd.huawei.com/artifactory/maven-central-repo/, releases=true, snapshots=true), [ERROR] central (https://cmc.centralrepo.rnd.huawei.com/artifactory/product_maven/, releases=true, snapshots=false) [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :gaia-apigc-app 进程已结束,退出代码为 1
最新发布
11-13
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

硕风和炜

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

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

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

打赏作者

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

抵扣说明:

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

余额充值