I have created a New Dynamic Project under Eclipse Helios Version, where my JRE Version is set to 1.6. I have added Maven capabilities to the Web Application by clicking on
If using eclipse,
Under.settings click on org.eclipse.wst.common.project.facet.core.xml
Change the version to the correct version.