Android Project from Existing Code 生成 R 文件错误、失败等问题解决办法 - 持续更新...

本文详细介绍了在将使用老版本Eclipse和Android 2.1的项目迁移到最新Eclipse Build:v22.0.5-757759和Android 2.2环境下,遇到生成R文件错误时的解决步骤。通过执行删除gen目录、移除已引入的Libraries、调整项目属性、重新引入Android SDK、导入jar包、清理并重建项目等操作,通常可以有效解决此类问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Android Project from Existing Code 生成 R 文件错误、失败等问题解决办法 - 持续更新


git  上的项目,pull下来之后用Android Project from Existing Code 导入项目后,生成 R 文件错误、失败


说明:git上的项目是用老版本的Eclipse和Android2.1,现在个人开发环境换成了最新版本的Eclipse Build: v22.0.5-757759,android版本换成2.2

解决办法:

用Android Project from Existing Code 导入项目后,生成 R 文件错误、失败

 

第一步:删除 gen 目录

第二步:remove 掉所有已引入的的 Libraries

第三步:右键--Android Tools---Fix Project Properties

第四步:重新选择引入Android SDK,如2.2

第五步:重新导入需要的 jar 

第六步:Project---Clean--Build Project


通过这六步,基本可解决问题,

但有时问题可能依然无法解决,这时就要排查其他的可能原因了,可尝试把上面的步骤多试几遍,问题或许可以解决


例如:在第三步后面执行第六步,然后继续四五六


以上是个人总结,欢迎补充




 

转载于:https://www.cnblogs.com/suncoolcat/p/3306540.html

PS D:\Hab_znaisc_v4_java\deepseekdemo-0704> mvn clean install -DskipTests [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.huaanbao:framework:jar:1.0.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.projectlombok:lombok:jar -> duplicate declaration of version 1.18.36 @ com.huaanbao:framework:${revision}, D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\pom.xml, line 290, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] contract-intelligence [pom] [INFO] framework [jar] [INFO] admin [jar] [INFO] types [jar] [INFO] biz [jar] [INFO] start [jar] [INFO] common-dependencies [pom] [INFO] common [pom] [INFO] common-generator [jar] [INFO] [INFO] -----------------------< com.huaanbao:contract >------------------------ [INFO] Building contract-intelligence 1.0.0-SNAPSHOT [1/9] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ contract --- [INFO] [INFO] --- install:3.1.2:install (default-install) @ contract --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\contract\1.0.0-SNAPSHOT\contract-1.0.0-SNAPSHOT.pom [INFO] [INFO] -----------------------< com.huaanbao:framework >----------------------- [INFO] Building framework 1.0.0-SNAPSHOT [2/9] [INFO] from framework\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] 1 problem was encountered while building the effective model for org.javassist:javassist:jar:3.21.0-GA during dependency collection step for project (use -X to see details) [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ framework --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ framework --- [INFO] Copying 43 resources from src\main\resources to target\classes [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\src\main\resources\dev [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ framework --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 361 source files with javac [debug target 17] to target\classes [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/helpdoc/domain/form/HelpDocUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/dict/domain/form/DictKeyUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/config/domain/ConfigUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/heartbeat/domain/HeartBeatRecordQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/dict/domain/form/DictValueUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/securityprotect/domain/LoginFailQueryForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/feedback/domain/FeedbackQueryForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/file/domain/form/FileQueryForm.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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/loginlog/domain/LoginLogQueryForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/helpdoc/domain/form/HelpDocQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/codegenerator/domain/form/TableQueryForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/changelog/domain/form/ChangeLogQueryForm.java:[20,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/job/api/domain/SmartJobLogQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/operatelog/domain/OperateLogQueryForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/config/domain/ConfigQueryForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/helpdoc/domain/form/HelpDocCatalogUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/dict/domain/form/DictKeyQueryForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/helpdoc/domain/form/HelpDocViewRecordQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/message/domain/MessageQueryForm.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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/job/api/domain/SmartJobQueryForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/dict/domain/form/DictValueQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/datatracer/domain/form/DataTracerQueryForm.java:[18,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/serialnumber/domain/SerialNumberRecordQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[75,12] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[75,12] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[75,12] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[75,12] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[75,12] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/config/RestTemplateConfig.java:[76,20] org.springframework.http.client 中的 org.springframework.http.client.OkHttp3ClientHttpRequestFactory 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/module/support/serialnumber/service/impl/SerialNumberInternService.java:[53,9] 尝试在基于值的类的实例上同步 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/common/util/SmartBeanUtil.java: 某些输入文件使用或覆盖了已过时的 API。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/common/util/SmartBeanUtil.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/common/util/ExcelUtil.java: 某些输入文件使用了未经检查或不安全的操作。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/framework/src/main/java/com/huaanbao/framework/common/util/ExcelUtil.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ framework --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ framework --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ framework --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ framework --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\target\framework-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ framework --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\framework\1.0.0-SNAPSHOT\framework-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\framework\target\framework-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\framework\1.0.0-SNAPSHOT\framework-1.0.0-SNAPSHOT.jar [INFO] [INFO] -------------------------< com.huaanbao:admin >------------------------- [INFO] Building admin 1.0.0-SNAPSHOT [3/9] [INFO] from admin\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ admin --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ admin --- [INFO] Copying 15 resources from src\main\resources to target\classes [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\main\resources\dev [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ admin --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 201 source files with javac [debug target 17] to target\classes [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/enterprise/domain/form/EnterpriseEmployeeQueryForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/goods/domain/form/GoodsUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/department/domain/vo/DepartmentEmployeeTreeVO.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/vo/NoticeUpdateFormVO.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/menu/domain/form/MenuAddForm.java:[13,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/bank/domain/BankQueryForm.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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/category/domain/form/CategoryUpdateForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/menu/domain/form/MenuUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/form/NoticeQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/form/NoticeUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/form/NoticeViewRecordQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/position/domain/form/PositionUpdateForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/bank/domain/BankUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/login/domain/LoginForm.java:[20,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/invoice/domain/InvoiceUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/login/domain/LoginResultVO.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/form/NoticeEmployeeQueryForm.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/employee/domain/form/EmployeeQueryForm.java:[20,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/role/domain/vo/RoleSelectedVO.java:[13,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/goods/domain/form/GoodsQueryForm.java:[20,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/employee/domain/form/EmployeeUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/department/domain/form/DepartmentUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/enterprise/domain/form/EnterpriseUpdateForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/invoice/domain/InvoiceQueryForm.java:[17,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/menu/domain/vo/MenuTreeVO.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/position/domain/form/PositionQueryForm.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/notice/domain/vo/NoticeEmployeeVO.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/role/domain/form/RoleQueryForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/department/domain/vo/DepartmentTreeVO.java:[15,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/menu/domain/vo/MenuVO.java:[16,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/role/domain/form/RoleUpdateForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/role/domain/form/RoleEmployeeQueryForm.java:[14,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:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/business/oa/enterprise/domain/form/EnterpriseQueryForm.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. [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/position/service/PositionService.java: D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\main\java\com\huaanbao\admin\module\system\position\service\PositionService.java使用或覆盖了已过时的 API。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/position/service/PositionService.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/datascope/service/DataScopeSqlConfigService.java: D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\main\java\com\huaanbao\admin\module\system\datascope\service\DataScopeSqlConfigService.java使用了未经检查或安全的操作。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/admin/src/main/java/com/huaanbao/admin/module/system/datascope/service/DataScopeSqlConfigService.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ admin --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ admin --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ admin --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ admin --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\target\admin-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ admin --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\admin\1.0.0-SNAPSHOT\admin-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\admin\target\admin-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\admin\1.0.0-SNAPSHOT\admin-1.0.0-SNAPSHOT.jar [INFO] [INFO] -------------------------< com.huaanbao:types >------------------------- [INFO] Building types 1.0.0-SNAPSHOT [4/9] [INFO] from types\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ types --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ types --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\src\main\resources [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\src\main\resources\dev [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ types --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 6 source files with javac [debug target 17] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ types --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ types --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ types --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ types --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\target\types-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ types --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\types\1.0.0-SNAPSHOT\types-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\types\target\types-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\types\1.0.0-SNAPSHOT\types-1.0.0-SNAPSHOT.jar [INFO] [INFO] --------------------------< com.huaanbao:biz >-------------------------- [INFO] Building biz 1.0.0-SNAPSHOT [5/9] [INFO] from biz\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ biz --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ biz --- [INFO] Copying 16 resources from src\main\resources to target\classes [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\src\main\resources\dev [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\src\main\resources\dev [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ biz --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 178 source files with javac [debug target 17] to target\classes [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/rule/TemplateNewRuleQry.java:[6,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/contractSubmit/ContractSubmitQry.java:[11,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/validate/ValidateQry.java:[7,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/response/contract/ContractInfoResponse.java:[10,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/rule/TemplateRuleQry.java:[7,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/contract/ContractQry.java:[13,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/pojo/request/query/template/ContractTemplateQry.java:[9,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:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contractSubmit/ContractSubmitConvertor.java:[20,26] Unmapped target property: "provinceName". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contractSubmit/ContractSubmitConvertor.java:[24,32] Unmapped target properties: "gmtCreate, brightStatus". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/template/TemplateRuleConvertor.java:[21,29] Unmapped target properties: "id, templateNo, templateName, pid, code, isDeleted, enable, createBy, updateBy, gmtCreate, gmtModified, ruleEnable". Mapping from Collection element "TemplateRuleAddCO templateRuleAddCO" to "AuditTemplateRule auditTemplateRule". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/template/TemplateRuleConvertor.java:[22,29] Unmapped target properties: "templateNo, templateName, pid, isDeleted, enable, createBy, updateBy, gmtCreate, gmtModified, ruleEnable". Mapping from Collection element "TemplateRuleModifyCO templateRuleModifyCO" to "AuditTemplateRule auditTemplateRule". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractTemplateRuleConvertor.java:[19,22] Unmapped target property: "creator". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractTemplateRuleConvertor.java:[28,22] Unmapped target property: "creator". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractTemplateRuleConvertor.java:[32,31] Unmapped target property: "creator". Mapping from Collection element "NewContractRule newContractRule" to "NewRulePageResponse newRulePageResponse". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractConvertor.java:[17,26] Unmapped target property: "provinceName". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractConvertor.java:[21,26] Unmapped target property: "provinceName". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/convertor/contract/ContractTemplateConvertor.java:[15,26] Unmapped target property: "creator". [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/controller/contractSubmit/ContractSubmitController.java:[66,55] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/controller/contractSubmit/ContractSubmitController.java:[74,61] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/repository/impl/AuditRecordRepositoryImpl.java:[128,67] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/repository/impl/AuditRecordRepositoryImpl.java:[142,85] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/repository/impl/ContractRepositoryImpl.java:[173,67] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/repository/impl/ContractRepositoryImpl.java:[187,85] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/service/impl/ContractAreaServiceImpl.java:[53,67] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/service/impl/ContractFacadeServiceImpl.java:[173,75] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [WARNING] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/service/impl/ContractNewAreaServiceImpl.java:[48,67] java.lang.Long 中的 Long(java.lang.String) 已过时, 且标记为待删除 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/controller/ContractController.java: 某些输入文件使用了未经检查或不安全的操作。 [INFO] /D:/Hab_znaisc_v4_java/deepseekdemo-0704/biz/src/main/java/com/huaanbao/contract/controller/ContractController.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ biz --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ biz --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ biz --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ biz --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\target\biz-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ biz --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\biz\1.0.0-SNAPSHOT\biz-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\biz\target\biz-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\biz\1.0.0-SNAPSHOT\biz-1.0.0-SNAPSHOT.jar [INFO] [INFO] -------------------------< com.huaanbao:start >------------------------- [INFO] Building start 1.0.0-SNAPSHOT [6/9] [INFO] from start\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ start --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ start --- [INFO] Copying 0 resource from src\main\resources to target\classes [INFO] Copying 4 resources from src\main\resources\dev to target\classes [INFO] Copying 2 resources from src\main\resources\dev to target\classes [INFO] Copying 4 resources from src\main\resources\dev to target\classes [INFO] The encoding used to copy filtered properties files have not been set. This means that the same encoding will be used to copy filtered properties files as when copying other filtered resources. This might not be what you want! Run your build with --debug to see which files might be affected. Read more at https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ start --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 1 source file with javac [debug target 17] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ start --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ start --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ start --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ start --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\target\start-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- spring-boot:3.4.3:repackage (default) @ start --- [INFO] Replacing main artifact D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\target\start-dev-1.0.0-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/. [INFO] The original artifact has been renamed to D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\target\start-dev-1.0.0-SNAPSHOT.jar.original [INFO] [INFO] --- install:3.1.2:install (default-install) @ start --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\start\1.0.0-SNAPSHOT\start-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\start\target\start-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\start\1.0.0-SNAPSHOT\start-1.0.0-SNAPSHOT.jar [INFO] [INFO] ------------------< com.huaanbao:common-dependencies >------------------ [INFO] Building common-dependencies 1.0.0-SNAPSHOT [7/9] [INFO] from common\common-dependencies\pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ common-dependencies --- [INFO] [INFO] --- install:3.1.2:install (default-install) @ common-dependencies --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-dependencies\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\common-dependencies\1.0.0-SNAPSHOT\common-dependencies-1.0.0-SNAPSHOT.pom [INFO] [INFO] ------------------------< com.huaanbao:common >------------------------- [INFO] Building common 1.0.0-SNAPSHOT [8/9] [INFO] from common\pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ common --- [INFO] [INFO] --- install:3.1.2:install (default-install) @ common --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\common\1.0.0-SNAPSHOT\common-1.0.0-SNAPSHOT.pom [INFO] [INFO] -------------------< com.huaanbao:common-generator >-------------------- [INFO] Building common-generator 1.0.0-SNAPSHOT [9/9] [INFO] from common\common-generator\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ common-generator --- [INFO] Deleting D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-generator\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ common-generator --- [INFO] Copying 2 resources from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ common-generator --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 17 source files with javac [debug target 17] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ common-generator --- [INFO] skip non existing resourceDirectory D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-generator\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ common-generator --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ common-generator --- [INFO] Tests are skipped. [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ common-generator --- [INFO] Building jar: D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-generator\target\common-generator-dev-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ common-generator --- [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-generator\pom.xml to D:\software\apache-maven-3.6.0\repository\com\huaanbao\common-generator\1.0.0-SNAPSHOT\common-generator-1.0.0-SNAPSHOT.pom [INFO] Installing D:\Hab_znaisc_v4_java\deepseekdemo-0704\common\common-generator\target\common-generator-dev-1.0.0-SNAPSHOT.jar to D:\software\apache-maven-3.6.0\repository\com\huaanbao\common-generator\1.0.0-SNAPSHOT\common-generator-1.0.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for contract-intelligence 1.0.0-SNAPSHOT: [INFO] [INFO] contract-intelligence .............................. SUCCESS [ 0.378 s] [INFO] framework .......................................... SUCCESS [ 17.691 s] [INFO] admin .............................................. SUCCESS [ 6.627 s] [INFO] types .............................................. SUCCESS [ 0.722 s] [INFO] biz ................................................ SUCCESS [ 7.299 s] [INFO] start .............................................. SUCCESS [ 3.587 s] [INFO] common-dependencies ................................ SUCCESS [ 0.011 s] [INFO] common ............................................. SUCCESS [ 0.012 s] [INFO] common-generator ................................... SUCCESS [ 1.228 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 38.072 s [INFO] Finished at: 2025-08-01T16:17:39+08:00 [INFO] ------------------------------------------------------------------------ 解析上述运行结果
最新发布
08-02
plugins { id 'com.android.application' } apply from: 'jacoco-report.gradle' def cfg = rootProject.ext.configuration android { compileSdk cfg.targetSdk defaultConfig { applicationId cfg.applicationId minSdk cfg.minSdk targetSdk cfg.targetSdk versionCode cfg.versionCode versionName cfg.versionName } signingConfigs { release { storeFile file("$rootDir/platform.jks") storePassword = "123456" keyPassword = "123456" keyAlias = "ktplatfrom" } debug { storeFile file("$rootDir/platform.jks") storePassword = "123456" keyPassword = "123456" keyAlias = "ktplatfrom" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debugCoverage { minifyEnabled false testCoverageEnabled false } } // buildTypes { // release { // minifyEnabled false // signingConfig signingConfigs.release // } // debug { // minifyEnabled false // signingConfig signingConfigs.debug // debuggable true // testCoverageEnabled false // } // } applicationVariants.all { variant -> variant.outputs.all { output -> def newName = "ktLauncher.apk" outputFileName = newName } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dataBinding { enabled = true } buildFeatures { aidl true } //儿童模式 flavorDimensions "default" productFlavors { _NORMAL_MODE { buildConfigField("int", "user_model", "0") } _CHILD_MODE { buildConfigField("int", "user_model", '1') } } testOptions { unitTests { includeAndroidResources = true returnDefaultValues = true } } } gradle.projectsEvaluated { tasks.withType(JavaCompile) { Set<File> fileSet = options.bootstrapClasspath.getFiles() List<File> newFileList = new ArrayList<>(); //将framework.jar插入到最前面 newFileList.add(new File("libs/framework.jar")) //最后将原始的数据插入 newFileList.addAll(fileSet) options.bootstrapClasspath = files( newFileList.toArray() ) } } dependencies { // api fileTree(include: ['*.jar'], dir: 'libs') implementation rootProject.ext.dependencies["appcompat"] implementation rootProject.ext.dependencies["material"] implementation rootProject.ext.dependencies["constraintlayout"] implementation rootProject.ext.dependencies["lifecycle-extensions"] implementation rootProject.ext.dependencies["gson"] implementation project(':base') compileOnly files('libs/framework.jar') implementation 'com.github.bumptech.glide:glide:4.12.0' implementation 'com.android.support:design:28.0.0' implementation "androidx.constraintlayout:constraintlayout:2.1.3" annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' // test testImplementation 'org.powermock:powermock-module-junit4:2.0.7' testImplementation 'org.powermock:powermock-module-junit4-rule:1.7.4' testImplementation 'org.powermock:powermock-api-mockito2:2.0.7' testImplementation 'org.mockito:mockito-core:3.3.3' testImplementation 'android.arch.core:core-testing:1.1.1' testImplementation 'org.mockito:mockito-inline:3.11.2' } -----build.gradle----------- apply plugin: 'jacoco' //gradlew clean & gradlew createOfflineTestCoverageReport & gradlew jacocoTestReport tasks.withType(Test) { jacoco.includeNoLocationClasses = true jacoco.excludes = ['jdk.internal.*'] } configurations { jacocoAnt jacocoRuntime } jacoco { toolVersion = "0.8.5" } def offline_instrumented_outputDir = "$buildDir.path/intermediates/classes-instrumented/debugCoverage" tasks.withType(Test) { jacoco.includeNoLocationClasses = true jacoco.excludes = ['jdk.internal.*'] } def coverageSourceDirs = [ 'src/main/java' ] task jacocoTestReport(type: JacocoReport, dependsOn: "test") { group = "Reporting" description = "Generate Jacoco coverage reports" classDirectories.from = fileTree( dir: './build/intermediates/javac/debugCoverage/classes/', excludes: [ '**/R.class', '**/R$*.class', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*', '**/BuildConfig.*', '**/**Bean.class', '**/inputmethod/*', '**/config/*.*', '**/flex/*.*', '**/AssetsUtils.class' ] ) getSourceDirectories().setFrom(files(coverageSourceDirs)) getExecutionData().setFrom(files('./build/jacoco/testDebugUnitTest.exec')) } jacocoTestReport { reports { xml.enabled true html.enabled true html.destination file("build/test-results/jacocoHtml") } } /* This task is used to create offline instrumentation of classes for on-the-fly instrumentation coverage tool like Jacoco. See jacoco classId * and Offline Instrumentation from the jacoco site for more info. * * In this case, some classes mocked using PowerMock were reported as 0% coverage on jacoco & Sonarqube. The issue between PowerMock and jacoco * is well documented, and a possible solution is offline Instrumentation (not so well documented for gradle). * * In a nutshell, this task: * - Pre-instruments the original *.class files * - Puts the instrumented classes path at the beginning of the task's classpath (for report purposes) * - Runs test & generates a new exec file based on the pre-instrumented classes -- as opposed to on-the-fly instrumented class files generated by jacoco. * * It is currently not implemented to run prior to any other existing tasks (like test, jacocoTestReport, etc...), therefore, it should be called * explicitly if Offline Instrumentation report is needed. * * Usage: gradle clean & gradle createOfflineInstrTestCoverageReport & gradle jacocoTestReport * - gradle clean //To prevent influence from any previous task execution * - gradle createOfflineInstrTestCoverageReport //To generate *.exec file from offline instrumented class * - gradle jacocoTestReport //To generate html report from newly created *.exec task */ task createOfflineTestCoverageReport(dependsOn: ['instrument', 'testDebugCoverageUnitTest']) { group = "reporting" doLast { ant.taskdef(name: 'report', classname: 'org.jacoco.ant.ReportTask', classpath: configur3+ations.jacocoAnt.asPath) ant.report() { executiondata { ant.file(file: "$buildDir.path/jacoco/testDebugCoverageUnitTest.exec") } structure(name: 'Example') { classfiles { fileset(dir: "$project.buildDir/intermediates/javac/debugCoverage") } sourcefiles { fileset(dir: 'src/main/java') } } //Uncomment if we want the task to generate jacoco html reports. However, the current script does not exclude files. //An alternative is to used jacocoTestReport after this task finishes //html(destdir: "$buildDir.path/reports/jacocoHtml") } } } createOfflineTestCoverageReport.dependsOn(clean) /* * Part of the Offline Instrumentation process is to add the jacoco runtime to the class path along with the path of the instrumented files. */ gradle.taskGraph.whenReady { graph -> if (graph.hasTask(instrument)) { tasks.withType(Test) { doFirst { systemProperty 'jacoco-agent.destfile', buildDir.path + '/jacoco/testDebugCoverageUnitTest.exec' classpath = files(offline_instrumented_outputDir) + classpath + configurations.jacocoRuntime } } } } /* * Instruments the classes per se */ task instrument(dependsOn:'compileDebugUnitTestSources') { doLast { println 'Instrumenting classes' ant.taskdef(name: 'instrument', classname: 'org.jacoco.ant.InstrumentTask', classpath: configurations.jacocoAnt.asPath) ant.instrument(destdir: offline_instrumented_outputDir) { fileset(dir: "$buildDir.path/intermediates/javac/debugCoverage") } } } -----jacoco-report.gradle--------------- jacoco-report.gradle 在同一个项目中的base模块可以正常生成jacoco单元测试覆盖率报告,但是在app模块无法生成,build文件夹中,都没有jacoco和 test-results文件夹。上述的jacoco-report.gradle和build.gradle是app模块的内容 请问应该如何解决app模块无法显示jacoco报告的问题i
07-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值