I got the following compilation error while running the Maven install command from Eclipse:
“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?”
Go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there.
Go into Window > Preferences > Java > Installed JREs > Execution Environments
Select JavaSE-1.6, click the jdk checkbox on the right. Then use “update project configuration” from the maven menu.
from:http://cduu.wordpress.com/2013/03/08/maven-eclipse-compiler-error-no-compiler-is-provided-in-this-environment/