In your pom.xml file, do something like the following:
You must have a SCM portion in your pom.xml so the plugin knows where to find your code and comments:
If your source control server requires authentication before the user is able to browse the repository you'll need to add some configuration parameters:
Other configuration parameters can be found here.
Important note: In a multi-module project, the artifact of the module must match the folder name of the SCM. Ie: if you have a foo-model module it must be located at /foo-model from the urlBase of your SCM repository.