Issue Description
Type: bug report
maven build failure
After cloning and importing as a maven project, I used command "maven package" then the console output is maven build failed and java.lang.NoClassDefFoundError Exception found. The complete output is
`D:\intellij_workspace_test\Sentinel>mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.alibaba.csp:sentinel-dashboard:jar:0.2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 119, 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] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: windows
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 10.0
[INFO] os.detected.version.major: 10
[INFO] os.detected.version.minor: 0
[INFO] os.detected.classifier: windows-x86_64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] sentinel-parent
[INFO] sentinel-core
[INFO] sentinel-extension
[INFO] sentinel-datasource-extension
[INFO] sentinel-datasource-nacos
[INFO] sentinel-datasource-zookeeper
[INFO] sentinel-datasource-apollo
[INFO] sentinel-annotation-aspectj
[INFO] sentinel-transport
[INFO] sentinel-transport-common
[INFO] sentinel-transport-simple-http
[INFO] sentinel-transport-netty-http
[INFO] sentinel-adapter
[INFO] sentinel-web-servlet
[INFO] sentinel-dubbo-adapter
[INFO] sentinel-grpc-adapter
[INFO] sentinel-dashboard
[INFO] sentinel-demo
[INFO] sentinel-demo-basic
[INFO] sentinel-demo-dynamic-file-rule
[INFO] sentinel-demo-rocketmq
[INFO] sentinel-demo-dubbo
[INFO] sentinel-demo-nacos-datasource
[INFO] sentinel-demo-zookeeper-datasource
[INFO] sentinel-demo-apollo-datasource
[INFO] sentinel-demo-annotation-spring-aop
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentinel-parent 0.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.1:prepare-agent (default) @ sentinel-parent ---
[INFO] argLine set to -javaagent:C:\Users\ritu\.m2\repository\org\jacoco\org.jacoco.agent\0.8.1\org.jacoco.agent-0.8.1-runtime.jar=destfile=D:\intellij_workspace_test\Sentinel\target\jacoco.exec
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.1:report (report) @ sentinel-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sentinel-core 0.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.1:prepare-agent (default) @ sentinel-core ---
[INFO] argLine set to -javaagent:C:\Users\ritu\.m2\repository\org\jacoco\org.jacoco.agent\0.8.1\org.jacoco.agent-0.8.1-runtime.jar=destfile=D:\intellij_workspace_test\Sentinel\sentinel-core\target\jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sentinel-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\intellij_workspace_test\Sentinel\sentinel-core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ sentinel-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 116 source files to D:\intellij_workspace_test\Sentinel\sentinel-core\target\classes
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[105,38] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[301,34] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[325,28] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[327,28] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[332,60] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[333,40] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[335,33] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/Stripe64.java:[337,45] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[199,34] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[202,27] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[214,28] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[216,28] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[221,83] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[223,36] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[224,39] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[WARNING] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/EagleEyeCoreUtils.java:[224,60] sun.misc.Unsafe是内部专用 API, 可能会在未来发行版中删除
[INFO] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/AbstractRule.java: D:\intellij_workspace_test\Sentinel\sentinel-core\src\main\java\com\alibaba\csp\sentinel\slots\block\AbstractRule.java使用了未经检查或不安全的操作。
[INFO] /D:/intellij_workspace_test/Sentinel/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/AbstractRule.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sentinel-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\intellij_workspace_test\Sentinel\sentinel-core\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ sentinel-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ sentinel-core ---
[INFO] Surefire report directory: D:\intellij_workspace_test\Sentinel\sentinel-core\target\surefire-reports
T E S T S
Running com.alibaba.csp.sentinel.base.metric.ArrayMetricTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.149 sec
Running com.alibaba.csp.sentinel.base.metric.WindowLeapArrayTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.39 sec
Running com.alibaba.csp.sentinel.ContextTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 sec
Running com.alibaba.csp.sentinel.RecordLogTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.685 sec
Running com.alibaba.csp.sentinel.slots.block.degrade.DegradeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.346 sec
Running com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest
Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.052 sec <<< FAILURE!
testStrategy(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0.039 sec <<< ERROR!
java.lang.ExceptionInInitializerError
at com.alibaba.csp.sentinel.config.SentinelConfig.loadProps(SentinelConfig.java:62)
at com.alibaba.csp.sentinel.config.SentinelConfig.(SentinelConfig.java:49)
at com.alibaba.csp.sentinel.node.metric.MetricWriter.(MetricWriter.java:48)
at com.alibaba.csp.sentinel.node.metric.MetricTimerListener.(MetricTimerListener.java:32)
at com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager.(FlowRuleManager.java:65)
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testStrategy(FlowPartialIntegrationTest.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
^
at java.util.regex.Pattern.error(Pattern.java:1957)
at java.util.regex.Pattern.compile(Pattern.java:1704)
at java.util.regex.Pattern.(Pattern.java:1351)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at java.lang.String.split(String.java:2380)
at java.lang.String.split(String.java:2422)
at com.alibaba.csp.sentinel.util.AppNameUtil.resolveAppName(AppNameUtil.java:78)
at com.alibaba.csp.sentinel.util.AppNameUtil.(AppNameUtil.java:59)
... 35 more
testStrategy_chain(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testStrategy_chain(FlowPartialIntegrationTest.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
testQPSGrade(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0.007 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testQPSGrade(FlowPartialIntegrationTest.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
testFlowRule_other(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testFlowRule_other(FlowPartialIntegrationTest.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
testThreadGrade(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testThreadGrade(FlowPartialIntegrationTest.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
testOriginFlowRule(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest.testOriginFlowRule(FlowPartialIntegrationTest.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Running com.alibaba.csp.sentinel.slots.block.flow.FlowRuleTest
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
testOrigin(com.alibaba.csp.sentinel.slots.block.flow.FlowRuleTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.FlowRule.selectNodeByRequesterAndStrategy(FlowRule.java:209)
at com.alibaba.csp.sentinel.slots.block.flow.FlowRule.passCheck(FlowRule.java:156)
at com.alibaba.csp.sentinel.slots.block.flow.FlowRuleTest.testOrigin(FlowRuleTest.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Running com.alibaba.csp.sentinel.slots.block.flow.PaceControllerTest
pass:6
block4
done10
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.005 sec
Running com.alibaba.csp.sentinel.slots.block.flow.WarmUpControllerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 100.049 sec
Running com.alibaba.csp.sentinel.slots.block.flow.WarmUpFlowTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
testWarmupFlowControl(com.alibaba.csp.sentinel.slots.block.flow.WarmUpFlowTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
at com.alibaba.csp.sentinel.slots.block.flow.WarmUpFlowTest.testWarmupFlowControl(WarmUpFlowTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Running com.alibaba.csp.sentinel.slots.block.system.SystemRuleTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec
Running com.alibaba.csp.sentinel.slots.nodeselector.NodeSelectorTest
Multiple entries: entry
Single entry: entry
Single entry: entry_multiple_another
Single entry: entry_multiple_one
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec
Running com.alibaba.csp.sentinel.SphOTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running com.alibaba.csp.sentinel.SphUTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Results :
Tests in error:
testStrategy(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest)
testStrategy_chain(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testQPSGrade(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testFlowRule_other(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testThreadGrade(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testOriginFlowRule(com.alibaba.csp.sentinel.slots.block.flow.FlowPartialIntegrationTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testOrigin(com.alibaba.csp.sentinel.slots.block.flow.FlowRuleTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
testWarmupFlowControl(com.alibaba.csp.sentinel.slots.block.flow.WarmUpFlowTest): Could not initialize class com.alibaba.csp.sentinel.slots.block.flow.FlowRuleManager
Tests run: 51, Failures: 0, Errors: 8, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] sentinel-parent .................................... SUCCESS [ 0.742 s]
[INFO] sentinel-core ...................................... FAILURE [02:08 min]
[INFO] sentinel-extension ................................. SKIPPED
[INFO] sentinel-datasource-extension ...................... SKIPPED
[INFO] sentinel-datasource-nacos .......................... SKIPPED
[INFO] sentinel-datasource-zookeeper ...................... SKIPPED
[INFO] sentinel-datasource-apollo ......................... SKIPPED
[INFO] sentinel-annotation-aspectj ........................ SKIPPED
[INFO] sentinel-transport ................................. SKIPPED
[INFO] sentinel-transport-common .......................... SKIPPED
[INFO] sentinel-transport-simple-http ..................... SKIPPED
[INFO] sentinel-transport-netty-http ...................... SKIPPED
[INFO] sentinel-adapter ................................... SKIPPED
[INFO] sentinel-web-servlet ............................... SKIPPED
[INFO] sentinel-dubbo-adapter ............................. SKIPPED
[INFO] sentinel-grpc-adapter .............................. SKIPPED
[INFO] sentinel-dashboard ................................. SKIPPED
[INFO] sentinel-demo ...................................... SKIPPED
[INFO] sentinel-demo-basic ................................ SKIPPED
[INFO] sentinel-demo-dynamic-file-rule .................... SKIPPED
[INFO] sentinel-demo-rocketmq ............................. SKIPPED
[INFO] sentinel-demo-dubbo ................................ SKIPPED
[INFO] sentinel-demo-nacos-datasource ..................... SKIPPED
[INFO] sentinel-demo-zookeeper-datasource ................. SKIPPED
[INFO] sentinel-demo-apollo-datasource .................... SKIPPED
[INFO] sentinel-demo-annotation-spring-aop ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:09 min
[INFO] Finished at: 2018-08-09T14:02:22+08:00
[INFO] Final Memory: 24M/286M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project sentinel-core: There are test failures.
[ERROR]
[ERROR] Please refer to D:\intellij_workspace_test\Sentinel\sentinel-core\target\surefire-reports for the individual test results.
[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 :sentinel-core`
What I expect is maven build successfully
How to reproduce it (as minimally and precisely as possible)
- import project as a maven project
- execute "maven package" in directory "Sentinel"
Tell us your environment
maven version: 3.3.9
maven repository config:
<repository> <id>central repository</id> <name>central</name> <url>http://central.maven.org/maven2/</url> <layout>default</layout> <!--<snapshotPolicy>always</snapshotPolicy>--> </repository>
jdk version: 1.8
IDE: intellij
Sentinel version: 0.2.0-SNAPSHOT
Anything else we need to know?
I found the parent pom.xml missing some dependencies with group "org.apache.maven.plugins" which version is 3.0.1. However, I found them in central maven repository. Their artifactId are as follows:maven-javadoc-plugin,maven-gpg-plugin.