开发者社区> 问答> 正文

Spring导入到Eclipse时报错,显示?报错

spring 3.2.4源代码自带的gradlew编译的,配置文件里写的是com.lowagie:itext 2.1.7报错总说找不到com.itextpdf:itextpdf:4.2.2这是为什么?其他版本的spring3源码也是这样,求帮助

Total time: 39.844 secs

E:\workspace3\spring>gradlew build --stacktrace

:spring-context-support:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':spring-context-support:op
tional'.
> Could not find com.itextpdf:itextpdf:4.2.2.
  Required by:
      org.springframework:spring-context-support:3.2.4.RELEASE > com.lowagie:ite
xt:4.2.2

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies fo
r configuration ':spring-context-support:optional'.
        at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfigurat
ion.rethrowFailure(DefaultLenientConfiguration.java:55)
       
Caused by: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundExc
eption: Could not find com.itextpdf:itextpdf:4.2.2.
Required by:
    org.springframework:spring-context-support:3.2.4.RELEASE > com.lowagie:itext

:4.2.2

unresolved dependency - com.itextpdf itextpdf 4.2.2

展开
收起
爱吃鱼的程序员 2020-06-12 14:14:15 459 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    是不是jar包没有下载全,把这个jar包删了重新下载一下试试

    我看了gradle的库,com.lowagie下就有个pom.xml文件,确实没下载下jar包,怎么删除让gradle重新可以下载呢?

    引用来自“shichaopeng”的评论

    是不是jar包没有下载全,把这个jar包删了重新下载一下试试

    2020-06-12 14:14:33
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
云栖社区特邀专家徐雷Java Spring Boot开发实战系列课程(第20讲):经典面试题与阿里等名企内部招聘求职面试技巧 立即下载
微服务架构模式与原理Spring Cloud开发实战 立即下载
阿里特邀专家徐雷Java Spring Boot开发实战系列课程(第18讲):制作Java Docker镜像与推送到DockerHub和阿里云Docker仓库 立即下载

相关镜像