How to change Java version for Maven in IntelliJ?

后端 未结 8 2041
情书的邮戳
情书的邮戳 2020-12-05 01:43

I\'m new to both Maven and IntelliJ IDEA.

I have a Maven project written in Java 8. Whenever I try to build it (Maven Projects window -> Lifecycle -> compile -> Run

8条回答
  •  自闭症患者
    2020-12-05 02:22

    There are two ways of doing this :

    First- Add Properties

    
      1.8
      1.8
    
    

    second- Add Plugin

    
            maven-compiler-plugin
            3.5.1
            
                1.8
                1.8
            
    
    

提交回复
热议问题