首页 > 解决方案 > 无法在 Eclipse 中解析类型 Spring 项目

问题描述

所以我在 Eclipse 上的春季项目运行良好,一周前我回到了我的项目,由于某种原因,到处都有弯曲的红线,说无法解析整个项目的类型。我已经尝试了互联网上的所有内容,但现在不知道前进的方向。

这是我运行 gradle 时看到的

    Working Directory: /Users/deso/Documents/workspace-sts-3.9.1.RELEASE/dohinventoryfordoh
Gradle user home: /Users/deso/.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.6
Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: build

:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find org.springframework.boot:spring-boot-starter-aop:.
  Required by:
      project :
> Could not find org.springframework.boot:spring-boot-starter-data-jpa:.
  Required by:
      project :
> Could not find org.springframework.boot:spring-boot-starter-web:.
  Required by:
      project :
> Could not find org.springframework.hateoas:spring-hateoas:.
  Required by:
      project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

1 actionable task: 1 executed

标签: javaeclipsespring-bootspring-data-jpaspring-data

解决方案


推荐阅读