question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make com.fasterxml.jackson.core:jackson-core dependency optional

See original GitHub issue

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 https://github.com/FasterXML/jackson-databind/issues/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?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mbasmanovacommented, Mar 21, 2018

@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!

1reaction
stolstovcommented, Mar 21, 2018

@mbasmanova I googled around and maybe this is what you want. I have not tried this:

<dependency>
  <groupId>com.esri.geometry</groupId>
  <artifactId>esri-geometry-api</artifactId>
  <version>2.1.0</version>
  <exclusions>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
	    <artifactId>jackson-core</artifactId>
        </exclusion>
   </exclusions>
</dependency>

https://stackoverflow.com/questions/6542118/override-dependencies-of-third-party-jar-in-maven?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

POM doc exclusions: http://maven.apache.org/pom.html#Exclusions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Optional with Jackson - Baeldung
First, let's take a look at what happens when we try to serialize and deserialize Optionals with Jackson. 2.1. Maven Dependency.
Read more >
Java Optional with Jackson - Codekru
In this post, we will serialize/deserialize the java optional field using Jackson. We will understand problems related to it and will discuss solutions....
Read more >
Using Jackson ObjectMapper with Java 8 Optional values
In order to do this: add com.fasterxml.jackson.datatype:jackson-datatype-jdk8 as a dependency; register the module with your object mapper: ...
Read more >
ObjectMapperFactory (Common Library 1.13.1 API) - javadoc.io
Create a "standard" ObjectMapper instance. Dependencies: com.fasterxml.jackson.core:jackson-core; com.fasterxml.jackson.core:jackson-databind ...
Read more >
com.datastax.oss : java-driver-core : 4.12.0 - Maven Central
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright DataStax, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found