Windows上的Corda gradle安装失败:“无法解析net.i2p.crypto:eddsa:0.2.0”

时间:2017-11-17 15:58:13

标签: corda

在Windows上设置https://github.com/roger3cev/corda-training-template时,我得到以下堆栈跟踪。问题似乎是以.crypto

结尾的文件名
What went wrong:
Could not resolve all files for configuration ':java-source:compileClasspath'.
Could not resolve net.i2p.crypto:eddsa:0.2.0.
Required by:
project :java-source > net.corda:corda-core:1.0.0
Could not resolve net.i2p.crypto:eddsa:0.2.0.
Could not get resource 'https://jcenter.bintray.com/net/i2p/crypto/eddsa/0.2.0/eddsa-0.2.0.pom'.
Failed to move file 'C:\Users\A57C\AppData\Local\Temp\gradle_download2832834655657514563bin' into filestore at 'C:\Users\A57C\.gradle\caches\modules-2\files-2.1\net.i2p.crypto\eddsa\0.2.0\d2905a940ee7c59e1636e1c3541069ccbbcdf227\eddsa-0.2.0.pom'
Failed to create parent directory 'C:\Users\A57C\.gradle\caches\modules-2\files-2.1\net.i2p.crypto' when creating directory 'C:\Users\A57C\.gradle\caches\modules-2\files-2.1\net.i2p.crypto\eddsa\0.2.0\d2905a940ee7c59e1636e1c3541069ccbbcdf227'
Could not resolve net.i2p.crypto:eddsa:0.2.0.

如何成功导入此依赖项?

1 个答案:

答案 0 :(得分:1)

从MVNRepository直接下载eddsa 0.2.0解决了这个问题:https://mvnrepository.com/artifact/net.i2p.crypto/eddsa/0.2.0

mvn install:install-file "-Dfile=eddsa-0.2.0.jar" "-DgroupId=net.i2p.crypto" "-DartifactId=eddsa" "-Dversion=0.2.0" "-Dpackaging=jar"

cordaCompile "net.i2p.crypto:eddsa:0.2.0"添加到kotlin-source和java-source中的build.gradle以导入工件。