Maven build Compilation error : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven

前端 未结 19 1690
说谎
说谎 2020-12-01 01:17

I have a maven project forked and cloned from a git repo onto my eclipse. It is build on Java 8. The first thing i do is perform a

mvn clean install
         


        
19条回答
  •  庸人自扰
    2020-12-01 01:51

    make sure java home path is correct. for my case, java home path is wrong in pom file.

      
            /usr/java/jdk1.8.0_45/bin/javac
      
    
    
    
    
                  
                    org.apache.maven.plugins
                            maven-compiler-plugin
                            3.5.1
                    
                          true
                          true
                          ${java.home}
                       1.8
                       1.8
                       1.8
                     
                 
    

提交回复
热议问题