Maven项目编译显示:程序包org.junit不存在错误

 检查junit所用依赖是否为最新版本,若是不是最新版本会包程序包org.junit不存在错误。spa

到网址查找http://mvnrepository.com/  输入junit查找blog

 

<dependencies>
    <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
             <scope>test</scope>
        </dependency>    
  </dependencies>ci