一个maven项目莫名其妙的遇上了NoClassDefFoundError com/google/inject/Injector,在maven-surefire-plugin插件中配置 了<forkMode>never</forkMode>之后又去掉该配置,竟然不报错了。