簡體   English   中英

Eclipse 2021 Maven Spring Z52435C65A6620CFF8B7C1B7B7B1

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM