亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

找不到工件 junit:單位:jar:5.0-快照

找不到工件 junit:單位:jar:5.0-快照

慕村225694 2022-09-28 14:30:35
<dependency>    <groupId>junit</groupId>    <artifactId>junit</artifactId>    <version>5.0-SNAPSHOT</version>    <scope>test</scope></dependency>錯誤找不到神器 junit:junit:jar:5.0-快照 -> [幫助 1]來自智能的屏幕截圖嘗試:mvn 清理和安裝不起作用文件 ->清理緩存并重新啟動不起作用刪除 .m2 目錄不起作用。
查看完整描述

1 回答

?
隔江千里

TA貢獻1906條經驗 獲得超10個贊

如果你想使用JUnit5,請使用下面的依賴關系 -


<dependency>

    <groupId>org.junit.jupiter</groupId>

    <artifactId>junit-jupiter-api</artifactId>

    <version>5.4.1</version>

    <scope>test</scope>

</dependency>

而且,如果您想使用JUnit4,請使用下面的依賴關系 -


<dependency>

    <groupId>junit</groupId>

    <artifactId>junit</artifactId>

    <version>4.12</version>

    <scope>test</scope>

</dependency>


查看完整回答
反對 回復 2022-09-28
  • 1 回答
  • 0 關注
  • 98 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號