Sonar抱怨" SonarQube分析已经在进行中"

时间:2015-12-04 09:29:21

标签: sonarqube

我试图通过Maven进行声纳分析,但它不断抱怨:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project mio-commons: Another SonarQube analysis is already in progress for this project -> [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:

此项目尚未进行分析,我甚至尝试从Sonar中删除项目本身。任何想法可能是什么问题?

3 个答案:

答案 0 :(得分:5)

我解决了,我猜,删除了#Returns true if input is ok, otherwise false def ok_input(userInput, allowed_letters): good = True for letter in userInput: if letter.upper() not in allowed_letters: good = False break return good #Placeholder function def thing_to_do_with_good_input(goodInput): print('My favorite word is '+goodInput) only_allowed = ['A','C','E','P','O','T'] #Loop forever asking for input loop_counter = 0 #<-- how many times we've done the big loop while True: userInput = '' ok_user_input = False #While the user hasn't given good input bad_counter = 0 #<-- how many incorrect inputs were given on this big loop while not ok_user_input: print('On loop #'+str(loop_counter)+' with '+str(bad_counter)+' input attempts') userInput = input('Please input word w/ only A, C, E, P, O, T : ') ok_user_input = ok_input(userInput, only_allowed) #<-- check if the input is ok if not ok_user_input: print('Your input was not good, please try again') bad_counter += 1 #<-- keep track of bad input attempts #The user finally gave us good input print('Now we are over here with only good input...') thing_to_do_with_good_input(userInput) #Increment the overall loop counter loop_counter += 1 文件夹。

答案 1 :(得分:2)

对我来说,删除${projectDir}/.scannerwork解决了问题。

linux上的命令:

$ <your project directory>
$ rm -rf .scannerwork

我正在使用sonarqube 7.0版和声纳扫描仪版本3.0.3.778

答案 2 :(得分:1)

缓存目录显示在控制台日志中。删除对我有用。 对我来说,那是

 C:\Users\<username>\.sonar\cache