Describe the bug
Running spring-boot-docker-compose dependency alongside spring-cloud-starter-openfeign makes docker-compose service creation to run twice. It produces The bean 'jdbcConnectionDetailsForXXXXDb1' could not be registered. A bean with that name has already been defined and overriding is disabled.
Sample demo1.zip
Comment From: OlgaMaciaszek
Hi @kbaluc, this should have been fixed by this change in Commons. Please try against Spring Cloud 2022.0.4-SNAPSHOT and get back to us if any issues persist.
Comment From: spring-cloud-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-cloud-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Comment From: merorafael
Hi @OlgaMaciaszek, I had the same problem here. How can I use the 2022.0.4-SNAPSHOT? It's not published in Maven Central.
Comment From: OlgaMaciaszek
Hello @merorafael, you'll need to add https://repo.spring.io/snapshot and https://repo.spring.io/ui/native/milestone to repositories in your build file.
Comment From: kbaluc
I've tested against 2022.0.4-SNAPSHOT and Docker Lifecycle is started only once. Issue doesn't appear. @merorafael example pom attached if you want to check spring-cloud-snapshot-test.txt