I'm looking for a way to generate a simple metrics report (more specifically, lines of code) for a maven multi-module java 7 build.
So my question is - how do I do this?
Sonar is really easy to install. Download the package unzip it and run the batch script. It will use an embedded database and web server
Running Maven as follows assume Sonar is running locally, so you won't need any special configuration in your POM.
mvn sonar:sonar
I suggest trying it out. It would seem to be more complex, but the Sonar team have done a lot of work to make Sonar really easy to use.
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