英文:
Spring Cloud Dataflow - Docker compose in windows local - Failed to resolve MavenResource
问题
在我的本地 Windows 机器上使用 Docker Compose 运行 Spring Cloud Dataflow,创建了一个名为 "myhttpstream" 的流,其中包括以下命令:
stream create --definition "http --server.port=8080 | log" --name myhttpstream
但在部署此流时,出现以下异常:
[Failed to resolve MavenResource: org.springframework.cloud.stream.app:http-source-rabbit:jar:3.2.1. Configured remote repository: : [springRepo]]
应该能够使用 Docker Compose 在我的本地 Windows 机器上部署 http|log 流。
英文:
Running spring cloud dataflow docker compose in my windows local.
Created http|log stream using below command
stream create --definition "http --server.port=8080 | log" --name myhttpstream
When i deploy this stream getting below exception.
[Failed to resolve MavenResource: org.springframework.cloud.stream.app:http-source-rabbit:jar:3.2.1. Configured remote repository: : [springRepo]]
Could not install AppDeployRequest [[AppDeploymentRequest@69027f98 commandlineArguments = list[[empty]], deploymentProperties = map['spring.cloud.deployer.appName' -> 'http', 'spring.cloud.deployer.group' -> 'myhttpstream'], definition = [AppDefinition@47999dbb name = 'http-v1', properties = map['management.endpoints.web.exposure.include' -> 'health,info,bindings', 'management.metrics.tags.application.type' -> '${spring.cloud.dataflow.stream.app.type:unknown}', 'spring.cloud.dataflow.stream.app.label' -> 'http', 'management.metrics.tags.stream.name' -> '${spring.cloud.dataflow.stream.name:unknown}', 'management.metrics.tags.application' -> '${spring.cloud.dataflow.stream.name:unknown}-${spring.cloud.dataflow.stream.app.label:unknown}-${spring.cloud.dataflow.stream.app.type:unknown}', 'spring.rabbitmq.host' -> 'rabbitmq', 'spring.cloud.dataflow.stream.name' -> 'myhttpstream', 'management.metrics.tags.instance.index' -> '${vcap.application.instance_index:${spring.cloud.stream.instanceIndex:0}}', 'wavefront.application.service' -> '${spring.cloud.dataflow.stream.app.label:unknown}-${spring.cloud.dataflow.stream.app.type:unknown}-${vcap.application.instance_index:${spring.cloud.stream.instanceIndex:0}}', 'spring.cloud.stream.bindings.output.producer.requiredGroups' -> 'myhttpstream', 'management.metrics.tags.application.guid' -> '${spring.cloud.application.guid:unknown}', 'server.port' -> '8080', 'spring.cloud.stream.bindings.output.destination' -> 'myhttpstream.http', 'management.metrics.tags.application.name' -> '${vcap.application.application_name:${spring.cloud.dataflow.stream.app.label:unknown}}', 'spring.cloud.dataflow.stream.app.type' -> 'source', 'wavefront.application.name' -> '${spring.cloud.dataflow.stream.name:unknown}']], resource = org.springframework.cloud.stream.app:http-source-rabbit:jar:3.2.1]] to platform [default]. Error Message = [Failed to resolve MavenResource: org.springframework.cloud.stream.app:http-source-rabbit:jar:3.2.1. Configured remote repository: : [springRepo]]
should be able to deploy http|log stream in my local windows machine using docker-compose
答案1
得分: 1
- 之前权限更改之前,
repo.spring.io/lib-snapshot
基本上解析了所有内容。 - 之后更改后,取而代之的是
repo.spring.io/snapshot
- 该仓库仅解析 Spring 的快照构件(不包括第三方)。因此,必须配置其他远程仓库。
SCDF 2.10.3
已经更新以解决此问题。您正在使用哪个版本的 SCDF?
如果您仍然遇到此问题,您可以尝试手动配置所需的远程仓库,按照SCDF参考指南中的步骤进行配置。所需的远程仓库列表如下:
maven:
remoteRepositories:
mavenCentral:
url: https://repo.maven.apache.org/maven2
springSnapshot:
url: https://repo.spring.io/snapshot
springMilestone:
url: https://repo.spring.io/milestone
英文:
The permissions have changed for repo.spring.io
(details).
- Before the permission change
repo.spring.io/lib-snapshot
resolved basically everything. - After the change,
repo.spring.io/snapshot
is instead used - which only resolves Spring SNAPSHOT artifacts (not 3rd party). Because of this, other remote repos must be configured.
SCDF 2.10.3
has been updated to address this. Which version of SCDF are you using?
If you are still seeing the issue you can try manually configuring the required remote repos following these steps in the SCDF ref guide.
The list of required remote repos are:
maven:
remoteRepositories:
mavenCentral:
url: https://repo.maven.apache.org/maven2
springSnapshot:
url: https://repo.spring.io/snapshot
springMilestone:
url: https://repo.spring.io/milestone
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论