You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "sunjincheng (Jira)" <ji...@apache.org> on 2021/02/16 03:23:00 UTC

[jira] [Commented] (IOTDB-1157) Fix iotdb-parent: null: MojoExecutionException due to sonar-maven-plugin

    [ https://issues.apache.org/jira/browse/IOTDB-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285011#comment-17285011 ] 

sunjincheng commented on IOTDB-1157:
------------------------------------

From [~jixuan1989]

If you want to avoid warnings, see [1] , by using

{{- uses: actions/checkout@v2
  with:
    fetch-depth: 0}}

If you want to solve NullPointer issues, I have no idea. If you check the sonar command, you will find the problem is {{sonar.login}} is null,
[!https://user-images.githubusercontent.com/1021782/108012809-4b1a4800-7045-11eb-860b-adbec0ab4aec.png!|https://user-images.githubusercontent.com/1021782/108012809-4b1a4800-7045-11eb-860b-adbec0ab4aec.png]

see [2] and [3] for why. and that is why I open PR [#2681|https://github.com/apache/iotdb/pull/2681]

[1] [https://community.sonarsource.com/t/sonarcloud-with-github-actions/22713]
[2] [https://www.google.com/url?q=https://help.github.com/en/articles/events-that-trigger-workflows%23pull-request-events-for-forked-repositories&source=gmail&ust=1613530497486000&usg=AFQjCNEfebNVY_hNI4Gtz41Cba39YTgLhw]
[3] [https://lists.apache.org/thread.html/rffca7a170b1e982c050279bf80802660b2c18131963b34c22122fb95%40%3Cbuilds.apache.org%3E]

> 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
>
> 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)