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

后端 未结 6 703
萌比男神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:36

    The false solution provideded by jediz did allow my surefire tests to run, but broke class loading in some of my Spring Boot integration tests.

    The following maven-surefire-plugin configuration worked for me:

    
        org.apache.maven.plugins
        maven-surefire-plugin
        
            -Djdk.net.URLClassPath.disableClassPathURLCheck=true
        
    
    

提交回复
热议问题