Sonar Enterprise Wrong! Task'.projectKey=' not found in root project ' '

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    I use 3.0 :
    plugins {
    ** id “org.sonarqube” version “3.0”**
    }

  • what are you trying to achieve
    I try to sonar my code as told
    ./gradlew sonarqube *
    ** -Dsonar.projectKey=ssl-portal-2 *

    ** -Dsonar.host.url=http://sonar.rd.unicloud.com **
    ** -Dsonar.login=391967eb2986d8b1d19660178ef7165a05e005b5**

  • The wrong is

FAILURE: Build failed with an exception.

  • What went wrong:
    Task ‘.projectKey=ssl-portal-v2’ not found in root project ‘ssl-portal’.

  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run wi
    th --scan to get full insights.

Hey there.

This is more likely a Gradle configuration issue rather than a SonarQube issue.

I would take the time to check the validity of the build.gradle and gradle.properties files in your repository. I would especially look for anywhere that you’ve defined ssl-portal-v2.

Thank you Colin.
I finally find the reason. My Intellij IDEA Terminal is powershell.exe ;That`s why we failed;
The solutions: 1. Change IDEA Terminal setting .change shell path “powershell.exe” to “cmd.exe”
2. OR cmd in the folders

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.