Idea Compile error Javactask: Source release 1.8 requires target release 1.8

Source: Internet
Author: User


<plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId> maven-compiler-plugin</artifactid>
		        <version>3.3</version>
		        <configuration>
		          <source>1.8</source>
		          <target>1.6</target>
		        </configuration>
			</ Plugin>

There are times when an error occurs:

Idea Compile error Javactask: Source release 1.8 requires target release 1.8

Reference:

http://blog.csdn.net/kinger0/article/details/46491831


If you change

<target>1.8</target>
There will be an error running on the JDK1.6:
Switching from high JDK to low version JDK error unsupported Major.minor version 52.0

Reference: http://blog.sina.com.cn/s/blog_64ecfc2f0102uxu6.html
Workaround: Remove the version control of Maven directly and stop the error.
<plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId> maven-compiler-plugin</artifactid>
		        <version>3.3</version>
			</plugin>

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.