Apache Shiro – Sample code error

Compiling the sample code in the Apache Shiro sample folder through Maven returned the following error:

[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on project samples-quickstart: Cannot get the revision information from the scm repository :

Adding the following parameter

 <revisionOnScmFailure>unversioned</revisionOnScmFailure>

to the section of the buildnumber-maven-plugin (line 395/396) in the root pom.xml file solves the problem.

Reference:
http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-sample-and-all-others-td7499096.html