Maven Classpath Variables on Eclipse

Eclipse needs to know the path to the local Maven repository. Therefore the classpath variable M2_REPO has to be set.

Execute the following command:

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

OR

You can also define a new classpath variable inside Eclipse. From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page.
Add the variable M2_REPO with path <path-to-your-user-folder>\.m2\repository.

Reference:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html

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

Google Chrome Frame

Google Chrome Frame is an open source plug-in that seamlessly brings Google Chrome’s open web technologies and speedy JavaScript engine to Internet Explorer.

With Google Chrome Frame, you can:

  • Start using open web technologies—such as the HTML5 canvas tag—right away, even technologies that aren’t yet supported in Internet Explorer 6, 7, 8, or 9.
  • Take advantage of JavaScript performance improvements to make your apps faster and more responsive.

Useful links:
http://www.chromium.org/developers/how-tos/chrome-frame-getting-started
http://www.instantfundas.com/2010/09/force-internet-explorer-to-always-use.html