<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>5.0-SNAPSHOT</version> <scope>test</scope></dependency>錯(cuò)誤找不到神器 junit:junit:jar:5.0-快照 -> [幫助 1]來(lái)自智能的屏幕截圖嘗試:mvn 清理和安裝不起作用文件 ->清理緩存并重新啟動(dòng)不起作用刪除 .m2 目錄不起作用。
1 回答
隔江千里
TA貢獻(xiàn)1906條經(jīng)驗(yàn) 獲得超10個(gè)贊
如果你想使用JUnit5,請(qǐng)使用下面的依賴(lài)關(guān)系 -
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.4.1</version>
<scope>test</scope>
</dependency>
而且,如果您想使用JUnit4,請(qǐng)使用下面的依賴(lài)關(guān)系 -
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
添加回答
舉報(bào)
0/150
提交
取消
