I am a novice with sonarqube. I want to ask a very simple question:
I want to modify the original java plugins to make it just check the bugs and vulnerability but ignore the code smell and security hotspot. What should I do ?
You don’t need to “modify the original java plugin” for that, except if there’s something I don’t understand.
You can simply create a quality profile containing only bug and vulnerability rules: look at the documentation for quality profiles.
Yeah…Thanks.
But now I get a problem about sonar-java, version 6.6.0.
I just execute the command
mvn clean install
but BUILD FAILURE, from the logs I found the the main problem since caused by ‘Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor’ in the front-end module.
With stack trace:
[ERROR] Tests run: 24, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.411 s <<< FAILURE! - in org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest
[ERROR] recursion_on_copy_constraint_should_stop Time elapsed: 0.037 s <<< ERROR!
org.sonar.java.AnalysisException: Failing check
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.recursion_on_copy_constraint_should_stop(RelationalSymbolicValueTest.java:514)
Caused by: org.sonar.java.CheckFailureException: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor - on file 'src/test/files/se/RelationSV.java', To help improve the
SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.recursion_on_copy_constraint_should_stop(RelationalSymbolicValueTest.java:514)
Caused by: org.sonar.java.bytecode.se.BytecodeEGWalker$BytecodeAnalysisException: Failed dataflow analysis for java.lang.Object#toString()Ljava/lang/String;
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.recursion_on_copy_constraint_should_stop(RelationalSymbolicValueTest.java:514)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 58
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.recursion_on_copy_constraint_should_stop(RelationalSymbolicValueTest.java:514)
[ERROR] too_many_relationship_should_stop_se_engine Time elapsed: 0.036 s <<< ERROR!
org.sonar.java.bytecode.se.BytecodeEGWalker$BytecodeAnalysisException: Failed dataflow analysis for java.lang.Object#hashCode()I
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.too_many_relationship_should_stop_se_engine(RelationalSymbolicValueTest.java:519)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 58
at org.sonar.java.se.symbolicvalues.RelationalSymbolicValueTest.too_many_relationship_should_stop_se_engine(RelationalSymbolicValueTest.java:519)
[INFO] Running org.sonar.java.TestUtilsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.sonar.java.TestUtilsTest
[INFO] Running org.sonar.java.se.checks.StreamConsumedCheckTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in org.sonar.java.se.checks.StreamConsumedCheckTest
[ERROR] test Time elapsed: 0.001 s <<< ERROR!
org.sonar.java.AnalysisException: Failing check
at org.sonar.java.se.checks.StreamConsumedCheckTest.test(StreamConsumedCheckTest.java:34)
Caused by: org.sonar.java.CheckFailureException: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor - on file 'src/test/files/se/StreamConsumedCheck.java', To help im
prove the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
at org.sonar.java.se.checks.StreamConsumedCheckTest.test(StreamConsumedCheckTest.java:34)
Caused by: org.sonar.java.bytecode.se.BytecodeEGWalker$BytecodeAnalysisException: Failed dataflow analysis for java.util.stream.Stream#of([Ljava/lang/Object;)Ljava/util/stream/Stream;
at org.sonar.java.se.checks.StreamConsumedCheckTest.test(StreamConsumedCheckTest.java:34)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 58
at org.sonar.java.se.checks.StreamConsumedCheckTest.test(StreamConsumedCheckTest.java:34)
[INFO] Running org.sonar.plugins.java.api.CheckRegistrarTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.sonar.plugins.java.api.CheckRegistrarTest
[INFO] Running org.sonar.java.resolve.targets.bytecodeGenerics.SemanticOrderResolutionTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in org.sonar.java.resolve.targets.bytecodeGenerics.SemanticOrderResolutionTest
[INFO] Running org.sonar.java.se.checks.CustomUnclosedResourcesCheckTest
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.146 s - in org.sonar.java.se.checks.CustomUnclosedResourcesCheckTest
[INFO] Running org.sonar.java.model.JTypeSymbolTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s - in org.sonar.java.model.JTypeSymbolTest
[INFO] Running org.sonar.java.ast.visitors.FileLinesVisitorTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 s - in org.sonar.java.ast.visitors.FileLinesVisitorTest
[INFO] Running org.sonar.java.bytecode.se.BytecodeEGWalkerTest
[ERROR] Tests run: 18, Failures: 7, Errors: 1, Skipped: 0, Time elapsed: 0.932 s <<< FAILURE! - in org.sonar.java.bytecode.se.BytecodeEGWalkerTest
[ERROR] test_enqueueing_of_exit_block Time elapsed: 0.011 s <<< FAILURE!
java.lang.AssertionError:
Expected size:<1> but was:<2> in:
<[{params: [], exceptional (java.io.IOException)},
{params: [], result: [FALSE,NOT_NULL] (-1)}]>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_enqueueing_of_exit_block(BytecodeEGWalkerTest.java:271)
[ERROR] test_enqueueing_of_catch_blocks2 Time elapsed: 0.005 s <<< FAILURE!
java.lang.AssertionError:
Expected size:<1> but was:<0> in:
<[]>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_enqueueing_of_catch_blocks2(BytecodeEGWalkerTest.java:260)
[ERROR] test_enqueueing_of_exit_block3 Time elapsed: 0.005 s <<< FAILURE!
org.junit.ComparisonFailure: expected:<[fals]e> but was:<[tru]e>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_enqueueing_of_exit_block3(BytecodeEGWalkerTest.java:292)
[ERROR] test_enqueueing_of_exit_block4 Time elapsed: 0.002 s <<< ERROR!
java.lang.NullPointerException
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_enqueueing_of_exit_block4(BytecodeEGWalkerTest.java:302)
[ERROR] test_enqueueing_of_catch_blocks Time elapsed: 0.001 s <<< FAILURE!
java.lang.AssertionError:
Expected size:<1> but was:<0> in:
<[]>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_enqueueing_of_catch_blocks(BytecodeEGWalkerTest.java:249)
[ERROR] test_method_throwing_exception Time elapsed: 0.002 s <<< FAILURE!
java.lang.AssertionError:
Expected size:<1> but was:<0> in:
<[]>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_method_throwing_exception(BytecodeEGWalkerTest.java:157)
[ERROR] unchecked_exceptions_should_be_enqueued Time elapsed: 0.005 s <<< FAILURE!
java.lang.AssertionError:
Expecting:
<[]>
to contain:
<[NOT_NULL, NULL]>
but could not find:
<[NOT_NULL, NULL]>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.unchecked_exceptions_should_be_enqueued(BytecodeEGWalkerTest.java:238)
[ERROR] test_guava Time elapsed: 0.003 s <<< FAILURE!
org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e>
at org.sonar.java.bytecode.se.BytecodeEGWalkerTest.test_guava(BytecodeEGWalkerTest.java:315)
......
[ERROR] Failures:
[ERROR] BytecodeEGWalkerExecuteTest.athrow_should_not_be_linked_to_next_label:140
Expected size:<2> but was:<1> in:
<[{params: [[]], exceptional (java.io.IOException)}]>
[ERROR] BytecodeEGWalkerExecuteTest.exceptional_paths_should_be_enqueued:1286
Expected size:<2> but was:<0> in:
<[]>
[ERROR] BytecodeEGWalkerExecuteTest.method_returning_new_should_have_not_null_result:1266
Expected size:<1> but was:<0> in:
<[]>
[ERROR] BytecodeEGWalkerExecuteTest.test_analysis_failure:1259
Expecting a cause with type:
<"java.lang.IllegalStateException">
and message:
<null>
but type was:
<"java.lang.IllegalArgumentException">
and message was:
<"Unsupported class file major version 58">.
[ERROR] BytecodeEGWalkerExecuteTest.test_enqueuing_exceptional_yields:1146
Expected size:<4> but was:<2> in:
<[B2.3: {} { SV_NULL->[NULL] SV_TRUE->[NOT_NULL,TRUE] SV_FALSE->[FALSE,NOT_NULL]} { [SV_23196316] },
B5.0: {} { SV_NULL->[NULL] SV_TRUE->[NOT_NULL,TRUE] SV_FALSE->[FALSE,NOT_NULL]} { [SV_23196323_java.lang.IllegalStateException!, SV_23196316] }]>
[ERROR] BytecodeEGWalkerExecuteTest.test_enqueuing_exceptional_yields2:1157
Expected size:<3> but was:<2> in:
<[B2.3: {} { SV_NULL->[NULL] SV_TRUE->[NOT_NULL,TRUE] SV_FALSE->[FALSE,NOT_NULL]} { [SV_23196361] },
B5.0: {} { SV_NULL->[NULL] SV_TRUE->[NOT_NULL,TRUE] SV_FALSE->[FALSE,NOT_NULL]} { [SV_23196368_java.lang.IllegalArgumentException!, SV_23196361] }]>
[ERROR] BytecodeEGWalkerTest.test_enqueueing_of_catch_blocks:249
Expected size:<1> but was:<0> in:
<[]>
[ERROR] BytecodeEGWalkerTest.test_enqueueing_of_catch_blocks2:260
Expected size:<1> but was:<0> in:
<[]>
[ERROR] BytecodeEGWalkerTest.test_enqueueing_of_exit_block:271
Expected size:<1> but was:<2> in:
<[{params: [], exceptional (java.io.IOException)},
{params: [], result: [FALSE,NOT_NULL] (-1)}]>
[ERROR] BytecodeEGWalkerTest.test_enqueueing_of_exit_block3:292 expected:<[fals]e> but was:<[tru]e>
[ERROR] BytecodeEGWalkerTest.test_guava:315 expected:<[tru]e> but was:<[fals]e>
[ERROR] BytecodeEGWalkerTest.test_method_throwing_exception:157
Expected size:<1> but was:<0> in:
<[]>
[ERROR] BytecodeEGWalkerTest.unchecked_exceptions_should_be_enqueued:238
Expecting:
<[]>
to contain:
<[NOT_NULL, NULL]>
but could not find:
<[NOT_NULL, NULL]>
[ERROR] BytecodeSECheckTest.method_with_numerical_operations:303
Expected size:<3> but was:<0> in:
<[]>
[ERROR] BehaviorCacheTest.test_peek:230 expected:<[tru]e> but was:<[fals]e>
[ERROR] DebugMethodYieldsOnInvocationsCheckTest.test:36 Expected at [14]
[ERROR] Errors:
[ERROR] JavaSquidTest.number_of_visitors_in_sonarLint_context_LTS:68->scanForErrors:108->addFile:129 ? NullPointer
[ERROR] JavaSquidTest.parsing_errors_should_be_reported_to_sonarlint:85->scanForErrors:108->addFile:129 ? NullPointer
[ERROR] SonarSymbolTableVisitorTest.sonar_symbol_table:79 ? IllegalState Unable to rea...
[ERROR] SyntaxHighlighterVisitorTest.parse_error:78 ? IllegalState Unable to read file...
[ERROR] SyntaxHighlighterVisitorTest.test_CR:101->generateDefaultTestFile:213->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.test_CR_LF:93->generateDefaultTestFile:213->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.test_LF:85->generateDefaultTestFile:213->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.test_java10_var:184->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.test_restricted_keywords_outside_module:153->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.test_restricted_keywords_within_module:112->generateTestFile:225 ? IllegalState
[ERROR] SyntaxHighlighterVisitorTest.text_block:200->generateTestFile:225 ? IllegalState
[ERROR] BytecodeEGWalkerTest.test_enqueueing_of_exit_block4:302 NullPointer
[ERROR] MethodLookupTest.lookup_method_from_superclass:50 ? IllegalArgument Unsupporte...
[ERROR] MethodMatcherFactoryTest.constructorFactoryMatching:146->buildTestFile:178 ? IllegalState
[ERROR] MethodMatcherFactoryTest.methodFactoryMatching:110->buildTestFile:178 ? IllegalState
[ERROR] BehaviorCacheTest.clear_stack_when_taking_exceptional_path_from_method_invocation:115 ? BytecodeAnalysis
[ERROR] BehaviorCacheTest.java_lang_math_methods_should_be_handled:131->verifyNoIssueOnFile:243 ? BytecodeAnalysis
[ERROR] BehaviorCacheTest.method_behavior_cache_should_be_filled_and_cleanup:63 ? BytecodeAnalysis
[ERROR] BehaviorCacheTest.test_blacklist:187 ? BytecodeAnalysis Failed dataflow analys...
[ERROR] ExplodedGraphWalkerTest.androidx_nullness_annotations:454 ? Analysis Failing c...
[ERROR] ExplodedGraphWalkerTest.constraints_on_fields:144 ? Analysis Failing check
[ERROR] ExplodedGraphWalkerTest.methods_should_be_evaluated_only_once:560 ? Analysis F...
[ERROR] ExplodedGraphWalkerTest.read_jetbrains_nullness_annotations:445 ? Analysis Fai...
[ERROR] ExplodedGraphWalkerTest.read_parametersAreNonnullByDefault_and_parametersAreNullableByDefault_annotations:409 ? Analysis
[ERROR] ExplodedGraphWalkerTest.reproducer:126 ? Analysis Failing check
[ERROR] ExplodedGraphWalkerTest.seEngineTest:84 ? Analysis Failing check
[ERROR] ExplodedGraphWalkerTest.test_cleanup_state:101 ? Analysis Failing check
[ERROR] ExplodedGraphWalkerTest.test_limited_loop_execution:284 ? Analysis Failing che...
[ERROR] ExplodedGraphWalkerTest.test_maximum_steps_reached_with_issue:359 ? Analysis F...
[ERROR] ExplodedGraphWalkerTest.test_this_super_not_null:536 ? Analysis Failing check
[ERROR] ExplodedGraphWalkerTest.xproc_reporting_with_var_args:508 ? Analysis Failing c...
[ERROR] ExplodedGraphWalkerTest.xproc_usage_of_exceptional_path_and_branching:490 ? Analysis
[ERROR] ExplodedGraphWalkerTest.xproc_usage_of_exceptional_path_and_branching_with_reporting:499 ? Analysis
[ERROR] ExplodedGraphWalkerTest.xproc_usage_of_method_behaviors_with_explicit_exceptional_path:472 ? Analysis
[ERROR] ExplodedGraphWalkerTest.xproc_usage_of_method_behaviors_with_explicit_exceptional_path_and_branching:481 ? Analysis
[ERROR] ConditionAlwaysTrueOrFalseCheckTest.condition_always_true_with_optional:82 ? Analysis
[ERROR] ConditionAlwaysTrueOrFalseCheckTest.resetFields_ThreadSleepCalls:91 ? Analysis
[ERROR] ConditionAlwaysTrueOrFalseCheckTest.test:42 ? Analysis Failing check
[ERROR] ConditionAlwaysTrueOrFalseCheckTest.whole_stack_required_for_ps_equality:73 ? Analysis
[ERROR] FlowComputationTest.avoid_visiting_equivalent_paths:152 ? Analysis Failing che...
[ERROR] FlowComputationTest.test:50 ? Analysis Failing check
[ERROR] FlowComputationTest.test_catof:59 ? Analysis Failing check
[ERROR] FlowComputationTest.test_exception_flows:207 ? Analysis Failing check
[ERROR] FlowComputationTest.test_flow_messages_on_branch:86 ? Analysis Failing check
[ERROR] FlowComputationTest.test_flow_messages_on_parameter_declaration:77 ? Analysis ...
[ERROR] FlowComputationTest.test_location_should_not_be_created_on_null_tree:216 ? Analysis
[ERROR] FlowComputationTest.test_messages_on_method_invocation:68 ? Analysis Failing c...
[ERROR] FlowComputationTest.test_method_invocations_without_flows:198 ? Analysis Faili...
[ERROR] FlowComputationTest.test_relational_sv_operands:106 ? Analysis Failing check
[ERROR] FlowComputationTest.test_trigger_yield_flow_computation_only_on_relevant_yields:142 ? Analysis
[ERROR] FlowComputationTest.xproc_flow_messages_constraint_is_VS_can_be:171 ? Analysis
[ERROR] InvariantReturnCheckTest.test:34 ? Analysis Failing check
[ERROR] LocksNotUnlockedCheckTest.object_constraint_cache_issues:45 ? Analysis Failing...
[ERROR] LocksNotUnlockedCheckTest.test:36 ? Analysis Failing check
[ERROR] MapComputeIfAbsentOrPresentCheckTest.test:34 ? Analysis Failing check
[ERROR] MinMaxRangeCheckTest.test:34 ? Analysis Failing check
[ERROR] NoWayOutLoopCheckTest.test:34 ? Analysis Failing check
[ERROR] NonNullSetToNullCheckTest.test:34 ? Analysis Failing check
[ERROR] NullDereferenceCheckTest.invocation_leading_to_NPE:70 ? Analysis Failing check
[ERROR] NullDereferenceCheckTest.objectsMethodsTest:43 ? Analysis Failing check
[ERROR] NullDereferenceCheckTest.reporting_test:79 ? Analysis Failing check
[ERROR] NullDereferenceCheckTest.ruling:88 ? Analysis Failing check
[ERROR] NullDereferenceCheckTest.test:34 ? Analysis Failing check
[ERROR] ObjectOutputStreamCheckTest.test:34 ? Analysis Failing check
[ERROR] OptionalGetBeforeIsPresentCheckTest.invocation_leading_to_NoSuchElementException:55 ? Analysis
[ERROR] OptionalGetBeforeIsPresentCheckTest.test:36 ? Analysis Failing check
[ERROR] OptionalGetBeforeIsPresentCheckTest.test_with_jdk_more_recent_than_8:46 ? Analysis
[ERROR] ParameterNullnessCheckTest.test:34 ? Analysis Failing check
[ERROR] RedundantAssignmentsCheckTest.test:34 ? Analysis Failing check
[ERROR] StreamConsumedCheckTest.test:34 ? Analysis Failing check
[ERROR] StreamNotConsumedCheckTest.test:34 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.jdbcTests:45 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.skip_exception_messages:107 ? Analysis Failing chec...
[ERROR] UnclosedResourcesCheckTest.spring:54 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.streams:63 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.test:36 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.testWithExcludedTypes:74 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.test_streams:98 ? Analysis Failing check
[ERROR] UnclosedResourcesCheckTest.try_with_resources:83 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.Xml_input_factory:34 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.document_builder_factory:43 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.sax_parser:52 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.schema_factory:61 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.transformer_factory:70 ? Analysis Failing check
[ERROR] XxeProcessingCheckTest.xml_reader:79 ? Analysis Failing check
[ERROR] RelationalSymbolicValueTest.recursion_on_copy_constraint_should_stop:514 ? Analysis
[ERROR] RelationalSymbolicValueTest.too_many_relationship_should_stop_se_engine:519 ? BytecodeAnalysis
[ERROR] HappyPathYieldTest.test_toString:91 ? BytecodeAnalysis Failed dataflow analysi...
[ERROR] MethodBehaviorTest.method_behavior_handling_finally:84 ? BytecodeAnalysis Fail...
[ERROR] MethodYieldTest.constraints_on_varargs:225 ? BytecodeAnalysis Failed dataflow ...
[ERROR] MethodYieldTest.test_creation_of_flows:92 ? BytecodeAnalysis Failed dataflow a...
[ERROR] MethodYieldTest.test_creation_of_states:75 ? BytecodeAnalysis Failed dataflow ...
[ERROR] MethodYieldTest.test_yield_on_reassignments:107 ? BytecodeAnalysis Failed data...
[INFO]
[ERROR] Tests run: 1416, Failures: 16, Errors: 93, Skipped: 5
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SonarJava 6.6.0-SNAPSHOT:
[INFO]
[INFO] SonarJava .......................................... SUCCESS [ 1.202 s]
[INFO] jdt ................................................ SUCCESS [ 6.216 s]
[INFO] SonarQube Java :: Front-end ........................ FAILURE [ 30.547 s]
[INFO] SonarQube Java :: Checks Test Sources .............. SKIPPED
[INFO] SonarQube Java :: Checks Test tool kit ............. SKIPPED
[INFO] SonarQube Java :: Checks ........................... SKIPPED
[INFO] SonarQube Java :: External Reports Sensor .......... SKIPPED
[INFO] SonarQube Java :: Surefire ......................... SKIPPED
[INFO] SonarQube Java :: JSP .............................. SKIPPED
[INFO] SonarQube Java :: Plugin ........................... SKIPPED
[INFO] SonarQube Java :: ITs .............................. SKIPPED
[INFO] SonarQube Java :: ITs :: Performancing ............. SKIPPED
[INFO] SonarQube Java :: ITs :: Plugin .................... SKIPPED
[INFO] SonarQube Java :: ITs :: Plugin :: Plugins ......... SKIPPED
[INFO] SonarQube Java :: ITS :: Plugin :: Java Extension Plugin SKIPPED
[INFO] SonarQube Java :: ITs :: Plugin :: Tests ........... SKIPPED
[INFO] SonarQube Java :: ITs :: Ruling .................... SKIPPED
[INFO] SonarQube Java :: ITs :: Semantic .................. SKIPPED
[INFO] SonarQube Java :: ITS :: Semantic :: Java Debugging Plugin SKIPPED
[INFO] SonarQube Java :: ITs :: Semantic :: Tests ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.488 s
[INFO] Finished at: 2020-06-23T11:29:27+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project java-frontend: There are test failures.
[ERROR]
[ERROR] Please refer to D:\sonar-java\sonar-java\java-frontend\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 <args> -rf :java-frontend
How can I solved it? Thanks.
Hello,
Can you share with us the version of Java you are using?
We advise you to use Java 11.
Hello,
I have solved it in Linux and using Java 11. Thanks a lot!
Best wish.
Zurich0
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.