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?
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>__
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With