Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
764 views
in Technique[技术] by (71.8m points)

sonarqube - Unable to delete build dir after running Sonar

I am using the SonarQube Gradle plugin version 3.0 with Gradle 6.7.1 for analysis of my Java code. This works fine and the results are uploaded to Sonar. When I do gradlew clean test sonarqube initially I have no problem. But when I run it subsequently I get the following:

java.io.IOException: Unable to delete directory 'C:xxxuild'

Failed to delete some children. This might happen because a process has
files open or has its working directory set in the target directory.

- C:xxxuildsonarfindbugsfindsecbugs-plugin.jar
- C:xxxuildsonarfindbugs
- C:xxxuildsonar

This keep on failing until I kill the Gradle daemon after which I can successfully run sonarqube again. Is there a way to get around this?

question from:https://stackoverflow.com/questions/65557864/unable-to-delete-build-dir-after-running-sonar

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...