首页 > 解决方案 > Spring Boot 项目的 Gradle 构建错误

问题描述

下面是 gradle build 的失败日志。无法确定原因。在格式化操作系统和重建 gradle 失败后,这在我的机器上工作过。

> Executing task: gradle: build <

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.lowagie:itext:2.1.7.js7.
     Required by:
         project : > net.sf.jasperreports:jasperreports:6.11.0

* 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 2s
5 actionable tasks: 1 executed, 4 up-to-date
Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.2.1-bin.zip'.

标签: spring-bootgradle

解决方案


推荐阅读