mvn : Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap cl asspath has been appended 所在位置 行:1 字符: 1 + mvn -s settings.xml -pl crm-customer,crm-project test -q 2>&1 | Tee-O ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (Java HotSpot(TM...s been appended:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError 15:39:43.720 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:43.719841300 15:39:43.865 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 1 条,旧锚点失效 0 条 15:39:44.027 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.027056100 15:39:44.028 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 提醒规则未初始化或总开关关闭,整轮跳过 15:39:44.031 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.031044400 15:39:44.031 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 提醒规则未初始化或总开关关闭,整轮跳过 15:39:44.032 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.032041100 15:39:44.033 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 首次触发与二次提醒均关闭,整轮跳过 15:39:44.050 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.050990900 15:39:44.061 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 1 条,旧锚点失效 0 条 15:39:44.084 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.084963100 15:39:44.110 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 0 条,旧锚点失效 1 条 15:39:44.143 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.143803100 15:39:44.157 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 1 条,旧锚点失效 0 条 15:39:44.174 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.174420800 15:39:44.183 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 0 条,旧锚点失效 0 条 15:39:44.204 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.204339700 15:39:44.209 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 0 条,旧锚点失效 0 条 15:39:44.221 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.221293500 15:39:44.227 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 1 条,旧锚点失效 0 条 15:39:44.227 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.227279400 15:39:44.233 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 完成:新增待发 0 条,旧锚点失效 0 条 15:39:44.248 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 开始,now=2026-09-11T15:39:44.248221300 15:39:44.250 [main] INFO com.crm.customer.job.CustomerReminderJob -- [客户提醒Job] 无参与扫描客户,跳过 Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts 15:39:48.168 [main] INFO com.crm.customer.task.ContactImportExecutor -- 联系人导入任务完成:taskId=2098315556361805826, insert=0, update=0, unchanged=0, fail=1, suspect=1 15:39:48.347 [main] INFO com.crm.customer.task.ContactImportExecutor -- 联系人导入任务完成:taskId=2098315557150334977, insert=1, update=1, unchanged=0, fail=0, suspect=0 15:39:48.491 [main] INFO com.crm.customer.task.ContactImportExecutor -- 联系人导入任务完成:taskId=2098315557800452097, insert=0, update=1, unchanged=0, fail=0, suspect=0 15:39:49.181 [main] INFO com.crm.customer.task.ContactImportExecutor -- 联系人导入任务完成:taskId=2098315560677744642, insert=1, update=0, unchanged=1, fail=0, suspect=0 15:39:52.109 [main] WARN com.crm.customer.service.impl.CustomerDetailServiceImpl -- 关联商机计数反查失败(降级显 --)customerId=2098315572967055364 java.lang.IllegalStateException: 商机模块不可用 at com.crm.customer.service.impl.CustomerFollowDetailIntegrationTest$1.pageByCustomerId(CustomerFollowDetailIntegrationTest.java:267) at com.crm.customer.service.impl.CustomerDetailServiceImpl.countOpportunitiesQuietly(CustomerDetailServiceImpl.java:292) at com.crm.customer.service.impl.CustomerDetailServiceImpl.detailHead(CustomerDetailServiceImpl.java:88) at com.crm.customer.service.impl.CustomerFollowDetailIntegrationTest.detailHead_aggregate(CustomerFollowDetailIntegrationTest.java:275) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:156) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:160) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:160) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) 15:39:52.863 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315575957594113, insert=1, update=0, unchanged=0, fail=1, suspect=0 15:39:53.107 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315577006170113, insert=1, update=0, unchanged=0, fail=0, suspect=0 15:39:53.356 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315578054746114, insert=1, update=0, unchanged=0, fail=2, suspect=0 15:39:53.527 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315578830692354, insert=2, update=0, unchanged=0, fail=0, suspect=1 15:39:53.793 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315579950571522, insert=0, update=0, unchanged=1, fail=0, suspect=1 15:39:53.940 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315580609077250, insert=0, update=1, unchanged=1, fail=0, suspect=0 15:39:54.186 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315581649264642, insert=0, update=0, unchanged=0, fail=0, suspect=1 15:39:54.417 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315582626537473, insert=0, update=1, unchanged=0, fail=1, suspect=0 15:39:54.813 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315584262316033, insert=1, update=0, unchanged=0, fail=0, suspect=0 15:39:55.332 [main] INFO com.crm.customer.task.CustomerImportExecutor -- 客户导入任务完成:taskId=2098315586430771201, insert=0, update=1, unchanged=1, fail=0, suspect=0 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.012 s <<< FAILURE! -- in com.crm.project.port.inbound.impl.SchemeCardProjectPortImplTest [ERROR] com.crm.project.port.inbound.impl.SchemeCardProjectPortImplTest -- Time elapsed: 0.012 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/opportunity/schemecard/SchemeCardProjectPort at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.opportunity.schemecard.SchemeCardProjectPort at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 13 more [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! -- in com.crm.project.query.impl.ProjectListBoardH2IntegrationTest [ERROR] com.crm.project.query.impl.ProjectListBoardH2IntegrationTest -- Time elapsed: 0.001 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/rule/port/inbound/ProjectRuleQueryPort at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.rule.port.inbound.ProjectRuleQueryPort at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 4 more [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! -- in com.crm.project.service.impl.ProjectCreateDetailH2IntegrationTest [ERROR] com.crm.project.service.impl.ProjectCreateDetailH2IntegrationTest -- Time elapsed: 0.001 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/rule/port/inbound/ProjectRuleQueryPort at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.rule.port.inbound.ProjectRuleQueryPort at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 4 more Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpat h has been appended [ERROR] Tests run: 7, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 2.418 s <<< FAILURE! -- in com.crm.project.service.impl.ProjectCreateServiceImplTest [ERROR] com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsOnConflict -- Time elapsed: 0.014 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/opportunity/domain/enums/SchemeCardOwnerType at com.crm.project.service.impl.ProjectCreateServiceImplTest.card(ProjectCreateServiceImplTest.java:83) at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsOnConflict(ProjectCreateServiceImplTest.java:176) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.opportunity.domain.enums.SchemeCardOwnerType at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 5 more [ERROR] com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsUnavailableCustomer -- Time elapsed: 0.017 s <<< ERROR! org.mockito.exceptions.misusing.UnfinishedStubbingException: Unfinished stubbing detected here: -> at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsOnConflict(ProjectCreateServiceImplTest.java:176) E.g. thenReturn() may be missing. Examples of correct stubbing: when(mock.isOk()).thenReturn(true); when(mock.isOk()).thenThrow(exception); doThrow(exception).when(mock).someVoidMethod(); Hints: 1. missing thenReturn() 2. you are trying to stub a final method, which is not supported 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsUnavailableCustomer(ProjectCreateServiceImplTest.java:120) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) [ERROR] com.crm.project.service.impl.ProjectCreateServiceImplTest.createSuccess -- Time elapsed: 0.008 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/opportunity/domain/enums/SchemeCardOwnerType at com.crm.project.service.impl.ProjectCreateServiceImplTest.card(ProjectCreateServiceImplTest.java:83) at com.crm.project.service.impl.ProjectCreateServiceImplTest.createSuccess(ProjectCreateServiceImplTest.java:192) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.opportunity.domain.enums.SchemeCardOwnerType ... 5 more [ERROR] com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsCardCustomerMismatch -- Time elapsed: 0.006 s <<< ERROR! org.mockito.exceptions.misusing.UnfinishedStubbingException: Unfinished stubbing detected here: -> at com.crm.project.service.impl.ProjectCreateServiceImplTest.createSuccess(ProjectCreateServiceImplTest.java:192) E.g. thenReturn() may be missing. Examples of correct stubbing: when(mock.isOk()).thenReturn(true); when(mock.isOk()).thenThrow(exception); doThrow(exception).when(mock).someVoidMethod(); Hints: 1. missing thenReturn() 2. you are trying to stub a final method, which is not supported 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsCardCustomerMismatch(ProjectCreateServiceImplTest.java:145) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) [ERROR] com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsProjectCardRebind -- Time elapsed: 0.008 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/opportunity/domain/enums/SchemeCardOwnerType at com.crm.project.service.impl.ProjectCreateServiceImplTest.card(ProjectCreateServiceImplTest.java:83) at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsProjectCardRebind(ProjectCreateServiceImplTest.java:160) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.opportunity.domain.enums.SchemeCardOwnerType ... 5 more Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 s <<< FAILURE! -- in com.crm.project.sub.ProjectTabsH2IntegrationTest [ERROR] com.crm.project.sub.ProjectTabsH2IntegrationTest -- Time elapsed: 0 s <<< ERROR! java.lang.NoClassDefFoundError: com/crm/rule/port/inbound/ProjectRuleQueryPort at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.ClassNotFoundException: com.crm.rule.port.inbound.ProjectRuleQueryPort at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 4 more 15:40:08.325 [main] INFO com.crm.project.port.inbound.impl.ProjectOwnerSyncPortImpl -- [project-owner-sync] 客户 8001 换负责人 → 项目 owner 同步 2 行 15:40:08.337 [main] INFO com.crm.project.port.inbound.impl.ProjectOwnerSyncPortImpl -- [project-owner-sync] 客户 8002 换负责人 → 项目 owner 同步 1 行 [ERROR] Errors: [ERROR] SchemeCardProjectPortImplTest ? NoClassDefFound com/crm/opportunity/schemecard/SchemeCardProjectPort [ERROR] ProjectListBoardH2IntegrationTest ? NoClassDefFound com/crm/rule/port/inbound/ProjectRuleQueryPort [ERROR] ProjectCreateDetailH2IntegrationTest ? NoClassDefFound com/crm/rule/port/inbound/ProjectRuleQueryPort [ERROR] ProjectCreateServiceImplTest.createRejectsCardCustomerMismatch:145 UnfinishedStubbing Unfinished stubbing detected here: -> at com.crm.project.service.impl.ProjectCreateServiceImplTest.createSuccess(ProjectCreateServiceImplTest.java:192) E.g. thenReturn() may be missing. Examples of correct stubbing: when(mock.isOk()).thenReturn(true); when(mock.isOk()).thenThrow(exception); doThrow(exception).when(mock).someVoidMethod(); Hints: 1. missing thenReturn() 2. you are trying to stub a final method, which is not supported 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed [ERROR] ProjectCreateServiceImplTest.createRejectsOnConflict:176->card:83 NoClassDefFound com/crm/opportunity/domain/enums/SchemeCardOwnerType [ERROR] ProjectCreateServiceImplTest.createRejectsProjectCardRebind:160->card:83 NoClassDefFound com/crm/opportunity/domain/enums/SchemeCardOwnerType [ERROR] ProjectCreateServiceImplTest.createRejectsUnavailableCustomer:120 UnfinishedStubbing Unfinished stubbing detected here: -> at com.crm.project.service.impl.ProjectCreateServiceImplTest.createRejectsOnConflict(ProjectCreateServiceImplTest.java:176) E.g. thenReturn() may be missing. Examples of correct stubbing: when(mock.isOk()).thenReturn(true); when(mock.isOk()).thenThrow(exception); doThrow(exception).when(mock).someVoidMethod(); Hints: 1. missing thenReturn() 2. you are trying to stub a final method, which is not supported 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed [ERROR] ProjectCreateServiceImplTest.createSuccess:192->card:83 NoClassDefFound com/crm/opportunity/domain/enums/SchemeCardOwnerType [ERROR] ProjectTabsH2IntegrationTest ? NoClassDefFound com/crm/rule/port/inbound/ProjectRuleQueryPort [ERROR] Tests run: 32, Failures: 0, Errors: 9, Skipped: 0 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project crm-project: [ERROR] [ERROR] Please refer to D:\code\crm-backend-matt\crm-project\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-project