spring-cloud-cli icon indicating copy to clipboard operation
spring-cloud-cli copied to clipboard

Rabbit profile not working

Open dsyer opened this issue 5 years ago • 2 comments

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

dsyer avatar Mar 23 '20 13:03 dsyer

Is it because it is not used directly? I thought flatten just got rid of things like the snapshot and milestone repositories.

spencergibb avatar Mar 23 '20 14:03 spencergibb

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.

dsyer avatar Mar 23 '20 14:03 dsyer