别的都不管用。看我的 idea No compiler is provided in this environment. Perhaps you are running

网上都是eclipse的,要么是project structure和setting的(当然这俩也要用)

我都试了,每一个能用的,最后是这样,在pom里添加plugin


    org.apache.maven.plugins
    maven-compiler-plugin
    3.1
    
        true
        true
        ${JAVA_HOME}/bin/javac
    
C:\Program Files\Java\jdk1.8.0_191

 

每次我从git上拉下项目都会说找jre的问题,上次忘记怎么弄好了。这次添加这个plugin,卡了几个小时终于好了。

你可能感兴趣的:(别的都不管用。看我的 idea No compiler is provided in this environment. Perhaps you are running)