{"id":15,"date":"2012-06-02T19:00:03","date_gmt":"2012-06-02T19:00:03","guid":{"rendered":"http:\/\/tech.lambiase.org\/?p=15"},"modified":"2012-06-02T19:00:03","modified_gmt":"2012-06-02T19:00:03","slug":"apache-shiro-sample-code-error","status":"publish","type":"post","link":"https:\/\/tech.lambiase.org\/?p=15","title":{"rendered":"Apache Shiro &#8211; Sample code error"},"content":{"rendered":"<p>Compiling the sample code in the Apache Shiro sample folder through Maven returned the following error:<\/p>\n<pre>[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 :<\/pre>\n<p>Adding the following parameter<\/p>\n<pre>\u00a0&lt;revisionOnScmFailure&gt;unversioned&lt;\/revisionOnScmFailure&gt;<\/pre>\n<p>to the section of the buildnumber-maven-plugin (line 395\/396) in the root pom.xml file solves the problem.<\/p>\n<p>Reference:<br \/>\n<a href=\"http:\/\/shiro-user.582556.n2.nabble.com\/Problem-running-Quickstart-sample-and-all-others-td7499096.html\">http:\/\/shiro-user.582556.n2.nabble.com\/Problem-running-Quickstart-sample-and-all-others-td7499096.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/tech.lambiase.org\/?p=15\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[12,11],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-apache","tag-apache-shiro","tag-shiro"],"_links":{"self":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":24,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}