When maven install in Eclipse, the error indicates that the JDK is invalid target version: 1.7

Source: Internet
Author: User

http://blog.csdn.net/wabiaozia/article/details/51733372

************************************

Error message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project Sshe: Compilation failure
[ERROR] Failure executing Javac, but could not parse the error:
[ERROR] javac:invalid target release:1.7
[ERROR] Usage:javac <options> <source files>
Or Chinese tip: Javac: Invalid target version: 1.7
Problem reason: This problem is because the JDK version is inconsistent with the Pom.xml version of Maven

Troubleshooting steps:
1 environment variable configuration modified?
2 Eclipse installed JREs is it set to 1.7?
My 1 and 2 are all configured with no problem, but still an error. Finally, refer to the method of the Netizen solved.

1 Right-click on the project:




2 Setting up the JRE




------------------------OK---------------------------

My Blog All articles directory: http://blog.csdn.NET/wabiaozia?viewmode=contents

This article references: http://blog.csdn.net/u011752559/article/details/12999633

When maven install in Eclipse, the error indicates that the JDK is invalid target version: 1.7

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.