【问题标题】:Eclipse 2021 Maven Spring Junit Build FailureEclipse 2021 Maven Spring Junit 构建失败
【发布时间】:2021-07-23 02:34:24
【问题描述】:

我正在尝试使用 Eclipse-2021-03。使用 Eclipse-Neon 在 maven 下构建的东西现在失败了。在 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”:

只是不知道为什么。帮助将不胜感激。谢谢。

【问题讨论】:

    标签: java eclipse maven spring-test


    【解决方案1】:

    答案就在这里;我在错误的地方寻找答案。显着的指标是 maven jar 旁边的灰色图标:Eclipse Maven dependency jar grayed out, can't import classes from it

    【讨论】:

      猜你喜欢
      • 2022-12-16
      • 2015-06-16
      • 2016-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多