我使用gradle构建了一个java项目(asciigenome)。
asciigenome的一个依赖项是github上的一个存储库(htsjdk,您可以看到它是一个fork,其中包含了我的一些更改)。如果我使用 htsjdk
在 build.gradle
:
dependencies {
...
compile 'com.github.dariober:htsjdk:80e355c'
...
}
我对htsjdk进行了编辑,所以现在
compile 'com.github.dariober:htsjdk:609ca91'
现在构建失败,出现以下情况:
./gradlew build
FAILURE: Build failed with an exception.
* Where:
Build file '/home/dario/git_repos/ASCIIGenome/build.gradle' line: 77
* What went wrong:
Could not determine the dependencies of task ':jar'.
> Could not resolve all files for configuration ':compile'.
> Could not find com.github.dariober:htsjdk:609ca91.
Searched in the following locations:
- https://jcenter.bintray.com/com/github/dariober/htsjdk/609ca91/htsjdk-609ca91.pom
- https://jcenter.bintray.com/com/github/dariober/htsjdk/609ca91/htsjdk-609ca91.jar
- https://jitpack.io/com/github/dariober/htsjdk/609ca91/htsjdk-609ca91.pom
- https://jitpack.io/com/github/dariober/htsjdk/609ca91/htsjdk-609ca91.jar
Required by:
project :
* 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 3s
我不明白为什么htsjdk:80e355c is 好吧,一会儿htsjdk:609ca91 fails. 知道是什么改变破坏了建筑吗?如果需要更多的信息,请告诉我
1条答案
按热度按时间jjjwad0x1#
原来htsjdk的.gitinore存储库中有一个bug,它导致一些文件被忽略,因此htsjdk依赖关系被破坏。修好了。修好了我的问题。