spring-cloud-cli
spring-cloud-cli copied to clipboard
Rabbit profile not working
The Cloud BOM gets erased from the launcher app poms by the flatten-maven-plugin.
Here's a workaround.
$ ls
cloud.yml thin-rabbit.properties
$ spring cloud stubrunner
...
2020-03-23 13:50:30.018 INFO 28638 --- [rC-Me-jWycxLg-2] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
$ cat cloud.yml
spring:
profiles:
active: rabbit
$ cat thin-rabbit.properties
boms.spring-cloud=org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR3
Is it because it is not used directly? I thought flatten just got rid of things like the snapshot and milestone repositories.
Not sure. It might be because the stubrunner actually doesn't use the bom directly, so it relies on one of its parents to provide it. The parent is the one that is actually breaks this, but probably it has its own reasons to strip the BOM. IDK.