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

后端 未结 11 1523
天涯浪人
天涯浪人 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:49

    I tested all the answers about this topic. And nothing worked here… but I found another solution.

    Go to pom -> overview and add these to your properties:

    Name: “maven.compiler.target” Value: “1.8”

    and

    Name: “maven.compiler.source” Value: “1.8”

    Now do a maven update.

提交回复
热议问题