无法找出 aws Spring 集成 gradle 依赖项的详尽列表
Unable to figure out exhaustive list of Spring integration gradle dependancies for aws
我正在尝试使用 spring-集成发布,从 sqs 订阅。对于我的 gradle 依赖项,我从以下内容开始:
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.SqsMessageDeletionPolicy
然后我继续添加:
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,所以我认为我使用了错误的依赖集。我在这里做错了什么?有人可以帮助我提供我需要使用的传递依赖项的完整列表吗?
你应该使用这个组合:
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-aws
的spring-cloud-aws-messaging
依赖是可选的,但是spring-integration-aws:1.0.0.RELEASE
使用的版本肯定是1.1.0.RELEASE
,而不是1.0.0.RELEASE
。
我正在尝试使用 spring-集成发布,从 sqs 订阅。对于我的 gradle 依赖项,我从以下内容开始:
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.SqsMessageDeletionPolicy
然后我继续添加:
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,所以我认为我使用了错误的依赖集。我在这里做错了什么?有人可以帮助我提供我需要使用的传递依赖项的完整列表吗?
你应该使用这个组合:
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-aws
的spring-cloud-aws-messaging
依赖是可选的,但是spring-integration-aws:1.0.0.RELEASE
使用的版本肯定是1.1.0.RELEASE
,而不是1.0.0.RELEASE
。