Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rabbit profile not working #145

Open
dsyer opened this issue Mar 23, 2020 · 2 comments
Open

Rabbit profile not working #145

dsyer opened this issue Mar 23, 2020 · 2 comments
Labels

Comments

@dsyer
Copy link
Contributor

dsyer commented Mar 23, 2020

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
@spencergibb
Copy link
Member

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

@dsyer
Copy link
Contributor Author

dsyer commented Mar 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants