-
Notifications
You must be signed in to change notification settings - Fork 260
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
Make com.fasterxml.jackson.core:jackson-core dependency optional #162
Comments
Hi Maria - does it work to effectively ignore the version of the dependency declared in the Geometry POM, by overriding it in your POM? For example, with Spatial Framework for Hadoop, I just ran |
Btw see also #151 , CVE-2017-7525 |
This doesn't seem to work. How is this supposed to work? |
I was thinking an entry in |
@randallwhitman Randall, dependencyManagement applies only to child POMs. It doesn't change how the actual dependencies has been built. |
I'd think that at runtime it would use the version present even if built against a different version. |
@mbasmanova I googled around and maybe this is what you want. I have not tried this:
POM doc exclusions: |
Ah yes, in Spatial Framework for Hadoop we have an |
@stolstov Sergey, I tried that, but it doesn't work because https://github.com/Esri/geometry-api-java/blob/master/pom.xml#L111
Would it be possible to change the above to |
@mbasmanova Did the maven behavior change for this? The docs that I found say explicitly that the exclusions can be used on the non-optional dependencies. |
@stolstov @randallwhitman Oh... sorry for confusion. I was adding the exclusion to dependencyManagement in the parent pom and that didn't work. I then added it to all the child pom files and that seems to be working. Thanks for helping to sort this out! |
I'm trying to upgrade to ESRI 2.1.0, but it requires 2.9.4 version of
com.fasterxml.jackson.core:jackson-core
. My project - https://prestodb.io/ - currently uses jackson-core:2.8.1 and can't upgrade to jackson-core:2.9.4 due to a regression FasterXML/jackson-databind#1972 . Since I don't use any GeoJSON features yet, I tried to exclude the dependency, but it is not optional.Would it be possible to make this dependency optional?
The text was updated successfully, but these errors were encountered: