-
Notifications
You must be signed in to change notification settings - Fork 161
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
AbstractCloudConfig imports classes from Spring data Redis, MongoDB and RabbitMQ #88
Comments
Does the fact that these dependencies are not transitive remove your concerns here? |
@gauthierj Any feedback on response above? |
I think the problem is that because they are imported you get a NoClassDefFound if you don't include them as dependencies even if you aren't using them. If you have something like:
You still have to include rabbit, redis, and mongo related dependencies even though you don't use them in your app.
Otherwise you get NoClassDefFoundExceptions. |
Thanks @davidehringer that's exactly my problem. Sorry for the late answer @scottfrederick, but I'm not truly working on that currently. |
@davidehringer and @gauthierj Sorry for the back-and-forth on this, but I think we are seeing different things and I'm not sure what's causing the differences. Here are several sample projects that use Spring Cloud Connectors, including Spring Music:
Spring Sendgrid:
rabbitmq-cloudfoundry-samples:
Can someone share a project that demonstrates the |
@scottfrederick not a problem. |
@davidehringer What's the version of JDK you are using? |
1.7.0_67 |
Having exactly the same issue in three projects. |
Fixed in 625040c. The reason that this problem was hard to nail down was that (per my testing anyway) the Moving the |
Hi,
In project "spring-cloud-spring-service-connector", the object AbstractCloudConfig imports classes from "spring-data-redis", "spring-data-mongodb" and "spring-data-rabbitmq". Therefore it is impossible to extend it to create a DataSource, without adding useless dependencies.
Thanks, regards,
Gauthier
The text was updated successfully, but these errors were encountered: