由于 gradle 依赖项不可用,无法构建 https://github.com/reactor/reactor-samples
cannot build https://github.com/reactor/reactor-samples due to lack of availability of gradle dependencies
我使用 Gradle 插件在 eclipse 中克隆并导入了 gradle 项目。
但我收到所有反应堆 类 的导入错误。项目中引用的BUILD.SNAPSHOTS的None可以找到。
./gradlew compileJava
:编译Java
失败:构建失败,出现异常。
出了什么问题:
无法解析配置“:compile”的所有依赖项。
Could not find io.projectreactor:reactor-stream:2.5.0.BUILD-SNAPSHOT.
Searched in the following locations:
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar
https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom
https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar
http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom
http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar
https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom
https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar
Required by:
io.projectreactor.springone:reactor-samples:0.2.0
Could not find io.projectreactor:reactor-bus:2.5.0.BUILD-SNAPSHOT.
Searched in the following locations:
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar
https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom
https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar
http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom
http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar
https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom
https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar
Required by:
io.projectreactor.springone:reactor-samples:0.2.0
Could not find io.projectreactor:reactor-groovy:2.5.0.BUILD-SNAPSHOT.
Searched in the following locations:
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom
file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar
https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom
https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar
http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom
http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar
https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom
https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar
Required by:
io.projectreactor.springone:reactor-samples:0.2.0
Could not find io.projectreactor.spring:reactor-spring-context:2.5.0.BUILD-SNAPSHOT.
Searched in the following locations:
file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom
file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar
https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom
https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar
http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom
http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar
https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom
https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar
Required by:
io.projectreactor.springone:reactor-samples:0.2.0
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
当前示例需要 recator 的 2.5 BUILD SNAPSHOT 版本。由于此快照版本在 Maven Central 上不可用,因此您必须手动构建它,以便它出现在您的 .m2/repo 中,然后您才能构建示例。
或者我们刚刚升级到 2.5.0.BUILD-SNAPSHOT 并且扩展回购是落后的,它至少应该很快在 repo.spring.io 上发布,并且无论如何都会在本月发布 M1。对于上周我们刚刚启动此更改给您带来的不便,我们深表歉意。
我想到了一个更简单的解决方案 - 遗憾的是样本本身没有配置此条目。理想情况下,它应该是因为示例引用快照。
只需添加一个存储库条目以指向 spring 个快照,您就可以找到构建快照:)
repositories {
mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/libs-snapshot' }
jcenter()
}
我使用 Gradle 插件在 eclipse 中克隆并导入了 gradle 项目。
但我收到所有反应堆 类 的导入错误。项目中引用的BUILD.SNAPSHOTS的None可以找到。
./gradlew compileJava :编译Java
失败:构建失败,出现异常。
出了什么问题: 无法解析配置“:compile”的所有依赖项。
Could not find io.projectreactor:reactor-stream:2.5.0.BUILD-SNAPSHOT. Searched in the following locations: file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom file:/Users/debasish/.m2/repository/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom https://repo1.maven.org/maven2/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom http://repo.spring.io/release/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.pom https://jcenter.bintray.com/io/projectreactor/reactor-stream/2.5.0.BUILD-SNAPSHOT/reactor-stream-2.5.0.BUILD-SNAPSHOT.jar Required by: io.projectreactor.springone:reactor-samples:0.2.0 Could not find io.projectreactor:reactor-bus:2.5.0.BUILD-SNAPSHOT. Searched in the following locations: file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom file:/Users/debasish/.m2/repository/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom https://repo1.maven.org/maven2/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom http://repo.spring.io/release/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.pom https://jcenter.bintray.com/io/projectreactor/reactor-bus/2.5.0.BUILD-SNAPSHOT/reactor-bus-2.5.0.BUILD-SNAPSHOT.jar Required by: io.projectreactor.springone:reactor-samples:0.2.0 Could not find io.projectreactor:reactor-groovy:2.5.0.BUILD-SNAPSHOT. Searched in the following locations: file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom file:/Users/debasish/.m2/repository/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom https://repo1.maven.org/maven2/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom http://repo.spring.io/release/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.pom https://jcenter.bintray.com/io/projectreactor/reactor-groovy/2.5.0.BUILD-SNAPSHOT/reactor-groovy-2.5.0.BUILD-SNAPSHOT.jar Required by: io.projectreactor.springone:reactor-samples:0.2.0 Could not find io.projectreactor.spring:reactor-spring-context:2.5.0.BUILD-SNAPSHOT. Searched in the following locations: file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom file:/Users/debasish/.m2/repository/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom https://repo1.maven.org/maven2/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom http://repo.spring.io/release/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/maven-metadata.xml https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.pom https://jcenter.bintray.com/io/projectreactor/spring/reactor-spring-context/2.5.0.BUILD-SNAPSHOT/reactor-spring-context-2.5.0.BUILD-SNAPSHOT.jar Required by: io.projectreactor.springone:reactor-samples:0.2.0
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
当前示例需要 recator 的 2.5 BUILD SNAPSHOT 版本。由于此快照版本在 Maven Central 上不可用,因此您必须手动构建它,以便它出现在您的 .m2/repo 中,然后您才能构建示例。
或者我们刚刚升级到 2.5.0.BUILD-SNAPSHOT 并且扩展回购是落后的,它至少应该很快在 repo.spring.io 上发布,并且无论如何都会在本月发布 M1。对于上周我们刚刚启动此更改给您带来的不便,我们深表歉意。
我想到了一个更简单的解决方案 - 遗憾的是样本本身没有配置此条目。理想情况下,它应该是因为示例引用快照。
只需添加一个存储库条目以指向 spring 个快照,您就可以找到构建快照:)
repositories {
mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/libs-snapshot' }
jcenter()
}