I have my JAVA_HOME set to:
C:\\Program Files (x86)\\Java\\jdk1.6.0_18
After I run maven ins
If you set the JAVA_HOME, and the problem persists try the following.
(I had the same problem, on a fresh installed PC.)
Assuming you are using Eclipse.
That's all. Your project will not suffer from such problems.