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

前端 未结 19 1722
说谎
说谎 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:38

    In my case, it was caused from an incompatibility with OpenJDK 9 (which I haven't investigated).

    If you don't need JDK 9, a temporary work-around would be to purge it from your machine:

    sudo apt-get remove --purge openjdk-9-jdk openjdk-9-jre 
    sudo apt-get remove --purge openjdk-9-jdk-headless openjdk-9-jre-headless
    

提交回复
热议问题