-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Upgrade to 2.1.7 throws snakeyaml error #7314
Comments
This looks like your application is using an incompatible version of SnakeYAML and Jackson. Dropwizard 2.1.7 comes with Jackson 2.13.5, which doesn't support SnakeYAML 2.x: https://github.com/dropwizard/dropwizard/blob/v2.1.7/dropwizard-dependencies/pom.xml#L39 This being said, you can use a more recent version of Jackson in your application that the one coming with Dropwizard 2.1.7 and use SnakeYAML 2.x. |
I'm having the same issue. SnakeYAML 2.x is actually a transitive dependency of Dropwizard; specifically, I see it in It turns out that this conflict in versions appears to have at least attempted to been addressed when you look at the Dropwizard BOM (
So SnakeYAML should be excluded as a transitive dependency of What's even stranger is that when one generates a Maven dependency tree of
However, when one has
And generated a Maven dependency tree of it, which shows the difference and the issue:
Is this a bug in Maven or what am I a missing here? |
thanks @ron-ak-p
to |
@aceArt-GmbH , confirmed! |
Hi @ron-ak-p
Maven currently doesn't support exclusions in the import scope. So the exclusion won't work there.
The cause of the behavior can be seen when building the effective POMs. (This can be done with the command If you're using the If you use the That being said, I don't think we should add an exclusion in the |
This issue is stale because it has been open 90 days with no activity. |
My app works fine in Dropwizard 2.1.6.
But when I upgrade to Dropwizard 2.1.7 it throws the following error...
Is there a way to resolve that?
The text was updated successfully, but these errors were encountered: