如何引用托管在Stash (aka. Bitbucket Server)上的自定义远程 Maven存储库?这是我在build.gradle
根目录中尝试的内容:
allprojects {
repositories {
jcenter()
maven {
// This Stash path does not work
url "https://stash.company.lan/projects/AP/repos/internal-repository"
}
maven {
// This GitHub path works fine
url "https://github.com/user/mvn-repo/tree/master"
}
}
}
我无法找出Stash原始文件夹结构的正确路径,因此Gradle可以理解。当我引用存储在存储库中的库时,抛出以下错误:
Error:Cause: unable to find valid certification path to requested target
最佳答案
关于maven - 如何将Stash用作Gradle项目的Maven远程存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38747160/