用idea中No compiler is provided in this environment. Perhaps you are runningon a JRE

用idea中终端执行mvn clean install命令,出现No compiler is provided in this environment. Perhaps you are running on a JRE错误

在这里插入图片描述
在项目的pom.xml中加入:


        
            
            
                org.springframework.boot
                spring-boot-maven-plugin
            
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.8.1
                
                    true
                    true
                    
                    D:/Java/jdk1.8.0_201/bin/javac
                
            
        
   

其中 D:/Java/jdk1.8.0_201为本机的jdk位置

你可能感兴趣的:(idea,java)