我不知道我在这上面浪费了多少时间。我不能在简单的faas函数中添加任何jar。
faas-cli new --lang java8 test --prefix="domain"
faas-cli build -f tes.tyml太棒了!-我有了一个新的简单干净的java解决方案。
然后,我打开build.gradle更改了两行代码:(向meaven添加一个实现并更改存储库)
plugins {
id 'java-library'
}
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
implementation 'net.sf.jasperreports.jasperreports:6.10.0'
implementation 'com.google.guava:guava:23.0'
testImplementation 'junit:junit:4.12'
compile project(':model')
}
repositories {
mavenCentral {}
}
faas-cli build -f test.yml ./web-proxy/build.gradle然后轰隆一声
失败:生成失败,出现异常。
* What went wrong:
Execution failed for task ':function:compileJava'.
> Could not resolve all files for configuration ':function:compileClasspath'.
> Could not find net.sf.jasperreports.jasperreports:6.10.0:.
Required by:
project :function我在4小时内不能将任何jar添加到faas java8项目中!请帮帮忙,现在我正在开发.net,这里我应该用jasper做一个小的快速函数,仅此而已
发布于 2019-11-19 01:25:52
您在Jasper reports依赖项中有一个拼写错误( Maven组ID和工件ID之间的分隔字符应该是冒号,但您有一个点)。试试这个:
implementation 'net.sf.jasperreports:jasperreports:6.10.0'
https://stackoverflow.com/questions/58918541
复制相似问题