If you install the m2eclipse Plugin for the Maven Integration in Eclipse, this Error could possibly be shown in the Eclipse console:
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
If you have this issue, you should edit your eclipse.ini and add the following lines (on a Windows System) :
Now your Eclipse should use the JDK to run with and the m2eclipse plugin should be happy.