[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.crm:crm-auth:jar:1.0.0-SNAPSHOT [WARNING] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 60, column 22 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.crm:crm-file:jar:1.0.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.projectlombok:lombok:jar -> duplicate declaration of version (?) @ line 49, 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] crm [pom] [INFO] crm-base [jar] [INFO] crm-file [jar] [INFO] crm-auth [jar] [INFO] [INFO] ----------------------------< com.crm:crm >----------------------------- [INFO] Building crm 1.0.0-SNAPSHOT [1/4] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --------------------------< com.crm:crm-base >-------------------------- [INFO] Building crm-base 1.0.0-SNAPSHOT [2/4] [INFO] from crm-base\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ crm-base --- [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-base\src\main\resources [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-base\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ crm-base --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-base --- [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-base\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-base --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ crm-base --- [INFO] [INFO] --------------------------< com.crm:crm-file >-------------------------- [INFO] Building crm-file 1.0.0-SNAPSHOT [3/4] [INFO] from crm-file\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ crm-file --- [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-file\src\main\resources [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-file\src\main\resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ crm-file --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-file --- [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-file\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-file --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ crm-file --- [INFO] [INFO] --------------------------< com.crm:crm-auth >-------------------------- [INFO] Building crm-auth 1.0.0-SNAPSHOT [4/4] [INFO] from crm-auth\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ crm-auth --- [INFO] Copying 1 resource from src\main\resources to target\classes [INFO] Copying 0 resource from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ crm-auth --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-auth --- [INFO] skip non existing resourceDirectory E:\code\crm-backend-matt\crm-auth\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-auth --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 18 source files with javac [debug parameters release 17] to target\test-classes [INFO] /E:/code/crm-backend-matt/crm-auth/src/test/java/com/crm/auth/security/TokenServiceTest.java: 某些输入文件使用了未经检查或不安全的操作。 [INFO] /E:/code/crm-backend-matt/crm-auth/src/test/java/com/crm/auth/security/TokenServiceTest.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ crm-auth --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.crm.auth.service.impl.DtOrgSyncServiceImplTest mvn.cmd : OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpa th has been appended 所在位置 行:1 字符: 59 + ... s-17.0.18'; & 'e:\code\crm-backend-matt\tmp\apache-maven-3.9.9\bin\mv ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (OpenJDK 64-Bit ...s been appended:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 2.855 s <<< FAILURE! -- in com.crm.auth.service.impl.DtOrgSyncServiceImplTest [ERROR] com.crm.auth.service.impl.DtOrgSyncServiceImplTest.inactiveUser_markedResigned -- Time elapsed: 1.980 s <<< ERROR! java.util.NoSuchElementException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1599) at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.lambda$setUp$4(DtOrgSyncServiceImplTest.java:116) at org.mockito.internal.stubbing.StubbedInvocationMatcher.answer(StubbedInvocationMatcher.java:42) at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103) at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34) at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82) at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134) at com.baomidou.mybatisplus.core.mapper.BaseMapper.selectOne(BaseMapper.java:295) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.upsertUser(DtOrgSyncServiceImpl.java:249) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncUsers(DtOrgSyncServiceImpl.java:236) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncOrg(DtOrgSyncServiceImpl.java:100) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.inactiveUser_markedResigned(DtOrgSyncServiceImplTest.java:265) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) [ERROR] com.crm.auth.service.impl.DtOrgSyncServiceImplTest.firstSync_insertsEverything -- Time elapsed: 0.337 s <<< ERROR! java.util.NoSuchElementException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1599) at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.lambda$setUp$4(DtOrgSyncServiceImplTest.java:116) at org.mockito.internal.stubbing.StubbedInvocationMatcher.answer(StubbedInvocationMatcher.java:42) at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103) at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34) at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82) at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134) at com.baomidou.mybatisplus.core.mapper.BaseMapper.selectOne(BaseMapper.java:295) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.upsertUser(DtOrgSyncServiceImpl.java:249) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncUsers(DtOrgSyncServiceImpl.java:236) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncOrg(DtOrgSyncServiceImpl.java:100) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.firstSync_insertsEverything(DtOrgSyncServiceImplTest.java:197) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) [ERROR] com.crm.auth.service.impl.DtOrgSyncServiceImplTest.resync_idempotent_andUpdatesName -- Time elapsed: 0.330 s <<< ERROR! java.util.NoSuchElementException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1599) at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.lambda$setUp$4(DtOrgSyncServiceImplTest.java:116) at org.mockito.internal.stubbing.StubbedInvocationMatcher.answer(StubbedInvocationMatcher.java:42) at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103) at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34) at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82) at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134) at com.baomidou.mybatisplus.core.mapper.BaseMapper.selectOne(BaseMapper.java:295) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.upsertUser(DtOrgSyncServiceImpl.java:249) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncUsers(DtOrgSyncServiceImpl.java:236) at com.crm.auth.service.impl.DtOrgSyncServiceImpl.syncOrg(DtOrgSyncServiceImpl.java:100) at com.crm.auth.service.impl.DtOrgSyncServiceImplTest.resync_idempotent_andUpdatesName(DtOrgSyncServiceImplTest.java:230) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] DtOrgSyncServiceImplTest.firstSync_insertsEverything:197->lambda$setUp$4:116 ? NoSuchElement [ERROR] DtOrgSyncServiceImplTest.inactiveUser_markedResigned:265->lambda$setUp$4:116 ? NoSuchElement [ERROR] DtOrgSyncServiceImplTest.resync_idempotent_andUpdatesName:230->lambda$setUp$4:116 ? NoSuchElement [INFO] [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for crm 1.0.0-SNAPSHOT: [INFO] [INFO] crm ................................................ SUCCESS [ 0.004 s] [INFO] crm-base ........................................... SUCCESS [ 1.846 s] [INFO] crm-file ........................................... SUCCESS [ 0.241 s] [INFO] crm-auth ........................................... FAILURE [ 10.543 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.112 s [INFO] Finished at: 2026-08-17T23:12:51+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project crm-auth: [ERROR] [ERROR] Please refer to E:\code\crm-backend-matt\crm-auth\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :crm-auth