Error “Source option 5 is no longer supported. Use 6 or later” on Maven compile

前端 未结 10 617
长情又很酷
长情又很酷 2021-02-01 01:27

I am getting the following error or $ mvn compile:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on         


        
10条回答
  •  醉梦人生
    2021-02-01 01:44

    Here is the solution which helped me:

    I had the same issue on error source option 5 is no longer supported, Use 6 or later

    So i followed these instructions and problem SOLVED

    1. Open Project Properties (File Menu)
    2. Change the Source / Binary Format to the latest version (JDK 7 in my case)

    Project Properties

    Source / Binary Format

    Clean and Build, Then Run the project

提交回复
热议问题