[英]Eclipse 2021 Maven Spring Junit Build Failure
我正在嘗試使用 Eclipse-2021-03。 在 maven 下使用 Eclipse-Neon 構建的東西現在失敗了。 在 Eclipse-2021-03 中,maven 已解決此依賴關系:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.0.5.RELEASE</version>
<scope>test</scope>
</dependency>
這可以在下圖中看到,但我收到錯誤“無法解析導入 org.springframework.test”:
就是想不通為什么。 幫助將不勝感激。 謝謝。
答案就在這里; 我在錯誤的地方尋找答案。 The salient indicator is the grey icon next to the maven jar it seems: Eclipse Maven dependency jar grayed out, can't import classes from it .
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.