Spring Boot fails to run maven-surefire-plugin ClassNotFoundException org.apache.maven.surefire.booter.ForkedBooter

后端 未结 6 688
萌比男神i
萌比男神i 2020-12-08 02:00

Running maven (3.5.2) build of a Spring Boot 2.0.2.RELEASE applicaton (generated by web initialiser with web dependencies) fails executing the maven

6条回答
  •  温柔的废话
    2020-12-08 02:15

    Workaround for the issue was to override Spring Boot's maven-surefire-plugin definition and set useSystemClassLoader to false. Read Surefire docs for more details

    
        
            ...
            
                org.apache.maven.plugins
                maven-surefire-plugin
                
                    false
                
            
        
    
    

提交回复
热议问题