Fork me on GitHub

Frequently Asked Questions

General

  1. Can the plugin be used on a project without an SCM connection?

General

Can the plugin be used on a project without an SCM connection?

Yes, set the plugin parameter <revisionOnScmFailure> to prevent the plugin from throwing an exception if SCM information is not found.

The other option is to use -Dmaven.buildNumber.ignoreEmptyScmUrl=true -Dmaven.buildNumber.scmProvider=git/svn/ Default is git.