JasperReports的Gradle构建失败:Dependency问题

oug3syen  于 2023-10-19  发布在  其他
关注(0)|答案(3)|浏览(112)

我的build.gradle如下:

// https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports
compile group: 'net.sf.jasperreports', name: 'jasperreports', version: '6.9.0'
// https://mvnrepository.com/artifact/com.lowagie/itext
compile group: 'com.lowagie', name: 'itext', version: '2.1.7.js6'

repositories {
maven {
    url 'https://repo.spring.io/libs-milestone'
}
 maven {
    url 'http://maven.icm.edu.pl/artifactory/repo/'
}

我得到的错误如下。
FAILURE:生成失败,出现异常。

  • 哪里出错了:未能解析配置“:Services:compileClasspath”的所有文件。

404找不到页面404找不到页面要求者:project:Services project:Services > net.sf.jasperreports:jasperreports:6.9.0
参考链接:https://mvnrepository.com/artifact/com.lowagie/itext/2.1.7.js6
这里出了什么问题?请帮帮我

kokeuurv

kokeuurv1#

将这些添加到存储库中为我解决了这个问题

repositories {
    mavenCentral()
    maven{url "http://jasperreports.sourceforge.net/maven2/"}
    maven{url "http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/"
}
}
dependencies {
    ...
    implementation 'net.sf.jasperreports:jasperreports:6.1.0'
    ...
}
y0u0uwnf

y0u0uwnf2#

这个工作对我来说:
//jdk-11
资源库{

mavenCentral()
...
maven{url "https://jaspersoft.jfrog.io/ui/native/jaspersoft-repo"}

maven {url "https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts"}
...

}
依赖关系{

...
implementation 'net.sf.jasperreports:jasperreports:6.20.0'

implementation 'com.lowagie:itext:2.1.7.js10'
...

}
来源:https://community.jaspersoft.com/questions/1210036/gradle-jasperreports-dependency-fails-resolve

v7pvogib

v7pvogib3#

Java 17 Sping Boot GradleKotlin-为我工作如下

implementation("net.sf.jasperreports:jasperreports:6.20.0"){
 exclude(group="com.lowagie", module= "itext")}

相关问题