[ https://issues.apache.org/jira/browse/IOTDB-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285013#comment-17285013 ]
sunjincheng commented on IOTDB-1157: ------------------------------------ Thanks for sharing the useful info [~jixuan1989]. `sonar.login ` is null also can cause the `not authorized` error if we fix other mistake config of sonar: !image-2021-02-16-11-25-10-357.png! So, in this JIRA. I would like make a little bit bug fix of sonar configuration. such as ` sonar.java.checkstyle.reportPaths` should not be the check style file but check style report file. > Fix iotdb-parent: null: MojoExecutionException due to sonar-maven-plugin > ------------------------------------------------------------------------ > > Key: IOTDB-1157 > URL: https://issues.apache.org/jira/browse/IOTDB-1157 > Project: Apache IoTDB > Issue Type: Sub-task > Components: Test > Reporter: sunjincheng > Priority: Major > Attachments: image-2021-02-16-11-25-10-357.png > > > There are serval time fails during CI checking, the error info as follows: > {code:java} > Error: Failed to execute goal > org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar > (default-cli) on project iotdb-parent: null: MojoExecutionException: > NullPointerException -> [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/MojoExecutionException > Error: Process completed with exit code 1. > {code} > More detail can be find in [1],[2][3]. > and your can check this by follows cmd: > {code} > mvn -B verify sonar:sonar \ > -Dsonar.organization=apache \ > -Dsonar.projectKey=apache_incubator-iotdb \ > -Dsonar.host.url=https://sonarcloud.io \ > -Dsonar.login= \ > -DskipTests -pl '!distribution' -am > {code} > [1] > [https://github.com/apache/iotdb/pull/2677/checks?check_run_id=1892946112] > [2] > [https://github.com/apache/iotdb/pull/2684/checks?check_run_id=1904610103] > [3][https://github.com/apache/iotdb/pull/2667/checks?check_run_id=1863611951] > -- This message was sent by Atlassian Jira (v8.3.4#803005)