Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sonar run error #2

Closed
hendisantika opened this issue Mar 29, 2017 · 1 comment
Closed

sonar run error #2

hendisantika opened this issue Mar 29, 2017 · 1 comment

Comments

@hendisantika
Copy link

Nice example,

But I have some issue when running the CLI :

mvn sonar:sonar
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project code-quality-game: /Users/hendisantika/Documents/IdeaProjects/code-quality-game/sonar-connector doesn't seem to be contained in a Git repository

I have run my sonar service.

Do you have any solution?

@mechero
Copy link
Owner

mechero commented Mar 30, 2017

Hi,
By default Sonarqube agent will try to extract information from the git repository. It seems your folder is not a git repo though, so it might be a solution for you to remove this line from pom.xml:
<sonar.scm.provider>git</sonar.scm.provider>
Give it a try and let me know.

@mechero mechero closed this as completed Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants