Hi,need help about sonarQube with maven

Hello, im trying to build a maven project on eclipse, using sonarQube analysis

i Generated a token and used the command sonar:sonar -Dsonar.hosturl=http://localhost:9000
-Dsonar.login=(my token) in the goal section and tried to build it, the problem is that it gives me the error:
Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.

can someone help me fix this error?


Welcome to the community!

What do you make of the error message? Did you compile before trying to analyze?


another problem occured now, You’re not authorized to run analysis. Please contact the project administrator


I guess you got past your build error. The new error is telling you that you need to pass a permissions token in to analysis. It needs to be generated by a user who has Execute Analysis permissions on the project. Start from the Authentication section of this docs page.