无法弄清楚aws的Spring集成gradle相关性的详尽列表 [英] Unable to figure out exhaustive list of Spring integration gradle dependancies for aws

查看:86
本文介绍了无法弄清楚aws的Spring集成gradle相关性的详尽列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用spring-integration进行发布,并从sqs进行订阅.我从以下方面开始了解我的gradle依赖关系:

I'm trying to use spring-integration for publishing, subscribing from sqs. I started with the following for my gradle dependancies:

compile group: 'org.springframework.cloud', name: 'spring-cloud-aws-messaging', version: '1.0.0.RELEASE'
compile group: 'org.springframework.integration', name: 'spring-integration-aws', version: '1.0.0.RELEASE'

它在抱怨:

ClassNotFoundException:org.springframework.cloud.
aws.messaging.listener.SqsMessageD‌​eletionPolicy

然后我继续并添加:

compile group: 'org.springframework.cloud', name: 'spring-cloud-
starter-aws', version: '1.0.1.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-
dependencies', version: 'Brixton.RELEASE', ext: 'pom'

现在我得到:

nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cloud/aws/jdbc/config/annotation/AmazonRdsInstanceConfiguration$AbstractRegistrar.class] cannot be opened because it does not exist

我完全不在项目中使用jdbc,所以我认为我使用了错误的依赖关系集.我在这里做错了什么?有人可以帮忙我需要使用的传递性依赖关系的完整列表吗?

I don't use jdbc in my project at all so I think I'm using the wrong set of dependancies. What am i doing wrong here? Can someone help with the complete list of transitive dependancies I need to use?

推荐答案

您应使用以下组合:

compile group: 'org.springframework.integration', name: 'spring-integration-aws', version: '1.0.0.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-aws-messaging', version: '1.1.0.RELEASE'

据我所知.

对,spring-integration-awsspring-cloud-aws-messaging依赖项是可选的,但是用于spring-integration-aws:1.0.0.RELEASE的版本肯定是1.1.0.RELEASE,而不是1.0.0.RELEASE.

Right, the spring-cloud-aws-messaging dependency of the spring-integration-aws is optional, but the version used for spring-integration-aws:1.0.0.RELEASE is definitely 1.1.0.RELEASE, not 1.0.0.RELEASE.

这篇关于无法弄清楚aws的Spring集成gradle相关性的详尽列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆