Maven “build path specifies execution environment J2SE-1.5”, even though I changed it to 1.7

后端 未结 11 1548
天涯浪人
天涯浪人 2020-11-27 12:00

In Eclipse Juno, I installed the latest m2e plugin (1.2.20120903-1050). In preferences, I have added jdk1.7.0_11 in Java -> Installed JREs -> Add, and then specified the lo

11条回答
  •  我在风中等你
    2020-11-27 12:35

    1. Right-click on your project
    2. Click Properties
    3. Click the "Java Compiler" option on the left menu
    4. Under JDK compliance section on the right, change it to "1.7"
    5. Run a Maven clean and then Maven build.

提交回复
热议问题