Eclipse Maven Project error 1 Java compiled version of the report error

Source: Internet
Author: User

One, error dynamic Web Module 3.0 requires Java 1.6 or newer

Workaround, add the Java version of the property configuration to the Pom.xml file as follows

<!--add by  wxj-      <plugin><groupId>org.apache.maven.plugins</groupId>< Artifactid>maven-compiler-plugin</artifactid><version>2.3.2</version><configuration ><source>1.8</source><target>1.8</target></configuration></plugin>

Note that the configuration needs to be added to the <plugins></plugins> tab, save wait Workspace creation complete, then right-click Project, Maven-update projects

Ii. error cannot change version of the project facet Dynamic Web Module to 3.0

This error is due to my previous manual. The DWM property has been changed to 3.1 for example, the result is determined to be configured by default in setting after saving 3.1

So go to the setting directory of the project, as seen in the configuration file is sure to be 3.1

Workaround, manually modify the XML Jst.web value to 3.0, and then modify the properties of project facets in Go eclipse to the properties of Dynamic Web module for 3.0

Need to first remove the previous √, save, and then configure it again to 3.0, problem solving

Eclipse Maven Project error 1 Java compiled version of the report error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.