idea: maven jdk 15 配置 解决 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plu


1.  先进行 maven 配置文件设置  

  打开 maven 安装包下的config文件下的  settings.xml

  
  E:/Development/maven/m2/repository

       
  alimaven  
  aliyun maven  
  http://maven.aliyun.com/nexus/content/groups/public/  
  central          
 
  

jdk15 true 15.0.1 15.0.1 15.0.1 15.0.1

2. idea 详细配置 https://blog.csdn.net/qq_42057154/article/details/106114515

idea 此处 进行这样配置 

3. 创建 项目后  pom.xml 配置

<?xml version="1.0" encoding="UTF-8"?>

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    4.0.0

    org.example
    day64_mybatis
    1.0-SNAPSHOT

    
    
        UTF-8
        15  
    

    

        
        
        
            org.mybatis
            mybatis
            3.5.6  
        

        
        
            mysql
            mysql-connector-java
            8.0.16
        

        
        
        
            org.junit.jupiter
            junit-jupiter-api
            5.7.0
            test
        

        
            org.apache.maven.plugins
            maven-dependency-plugin
            3.1.2
            maven-plugin
        

    



    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.8.0
            

            
                org.apache.maven.plugins
                maven-surefire-plugin
                3.0.0-M5
                
                    true
                
            

        
    

重新运行 程序  应该能解决 大部分问题  

注意 其中 junity5的初步教程  https://blog.csdn.net/jackyrongvip/article/details/89403526