由于缺少 nexus-maven-repository-index.properties,springfox 2.2.3 快照依赖项添加失败

springfox 2.2.3 snapshot dependencies adding failed because of missing nexus-maven-repository-index.properties

我使用 gradle 在 IDEA 14 中使用 springfox 2.2.3 快照版本设置我的项目。我遵循说明 2.1.1. Gradle Snapshot。我失败了,错误是无法索引 maven 存储库,并在 IDEA 的日志中看到异常:

WARN -      #org.jetbrains.idea.maven - Failed to update Maven indices for: [com.intellij.util.CachedValueImpl@a1d13c] http://oss.jfrog.org/simple/oss-snapshot-local/io/springfox 

org.jetbrains.idea.maven.server.MavenServerIndexerException: java.lang.RuntimeException: java.io.FileNotFoundException: 资源 nexus-maven-repository-index.properties 不存在

我尝试了两个存储库,但都失败了:

有人知道如何解决这个问题吗?

我尝试手动下载依赖项并将它们放在我的本地 .m2 目录中并在 gradle mavenLocal() 中设置而不是 maven {url ...} 但是我的尝试失败了,IDEA 在 [=] 上发出警告44=]刷新操作:

Warning:<i><b>project ':data-service': Web Facets/Artifacts will not be configured</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':data-service:runtime'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find io.springfox:springfox-swagger2:2.2.3-SNAPSHOT.
Required by:
parseq:data-service:2.4.0 alpha</i>

现在我认为还应该为springfox包手动添加传递依赖。但是看起来很难看,我觉得我不应该走这条路。

有人知道我该怎么做吗?

我发现依赖项下载存在问题: * 当我在公司网络工作时,我遇到了 SSL 证书问题 * 最初我将 maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } 添加到 buildscript {...} 部分,我将其更改为 repositories {...} 并解决了问题 * 我也将 gradle 更新到 2.4 版本(但没有帮助)

现在我的启动问题已经解决了。