Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonarqube 5.6.3 .sonar /cache directory change

Tags:

sonarqube

I am trying to do a maven sonar analysis of my project, but the problem I face is, it downloads sonar jars in my users home/user/.sonar directory in Linux. The logs shows the path to be set in User cache as that of home/user/.sonar I want to change this patch since this users directory doesn't have enough space.

What all do I need to change?

like image 625
Mary Lopez Avatar asked Jan 19 '26 09:01

Mary Lopez


1 Answers

I resolved this issue by putting in -Duser.home in mvn command for sonar Which would somewhat look like:

mvn sonar:sonar -Duser.home=__<new location to download sonar jars in which it will create .sonar/cache wherein the jars will be downloaded>__

like image 117
Mary Lopez Avatar answered Jan 21 '26 09:01

Mary Lopez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!