How do I fix this dependency issue in Clojure?

user592419

I'm having a lot of trouble fixing an issue where the dependencies for two different packages are colliding. My project.clj's dependencies look like this:

  :dependencies [[org.clojure/clojure "1.6.0"]
                 [itsy "0.1.1"]  
                 [amazonica "0.3.22" :exclusions [commons-logging org.apache.httpcomponents/httpclient com.fasterxml.jackson.core/jackson-core]]])

My namespace looks like this:

(ns crawler.core
  (:require [itsy.core :refer :all])
  (:require [itsy.extract :refer :all])
  (:use  [amazonica.core]
         [amazonica.aws.s3]))

When I try to load the namespace into lein's repl with (load crawler/core), I get this error:

CompilerException java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z, compiling:(amazonica/core.clj:1:1)

Online sources suggest that this is a dependency mismatch. How do I fix it?

Arthur Ulfeldt

I put the exclusion on itsy rather than amazonica and it worked. Also fixed the NS form in core.clj.

project.clj:

(defproject blabla "0.1.0-SNAPSHOT"
   :description "FIXME: write description"
  :url "http://example.com/FIXME"
   :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [itsy "0.1.1" :exclusions [com.fasterxml.jackson.core/jackson-core]]  
                  [amazonica "0.3.22" :exclusions [commons-logging org.apache.httpcomponents/httpclient]]])

core.clj:

(ns blabla.core
  (:require [itsy.core :refer :all]
            [itsy.extract :refer :all]
            [amazonica.core :refer :all]
            [amazonica.aws.s3 :refer :all]))

(defn foo
   "I don't do a whole lot."
  [x]
   (println x "Hello, World!"))

to deal with these situatuions in general run

lein deps :tree

and add exclusions until only the newest versions remain.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I fix this dependency issue in Clojure?

From Dev

How do I fix this circular dependency?

From Dev

How do I fix margin issue in CSS?

From Dev

how do i fix this array issue?

From Dev

Issue with coding, how do I fix this?

From Dev

how do I fix the type mismatch issue?

From Java

How do I fix the npm UNMET PEER DEPENDENCY warning?

From Dev

What is this ffmpeg dependency error telling me and how do I fix it?

From Dev

How do I fix the missing reboot/shutdown issue in 13.10?

From Dev

How do I fix my Bootstrap accordion issue?

From Dev

How do I fix control ghosting issue in ListView?

From Dev

How do I fix "hard freezing" issue when running games?

From Dev

How do I fix the missing reboot/shutdown issue in 13.10?

From Dev

How do I fix a cipher mismatch issue with sftp?

From Dev

How do I fix my Bootstrap accordion issue?

From Dev

How do I run script on startup to fix screen orientation issue?

From Dev

How can I fix this dependency issue that broke Makerware with my last update?

From Dev

How do I fix broken libxml2-dev dependency on Debian using apt?

From Dev

This dependency gives me two versions of one jar. How do I fix this?

From Dev

How do I fix broken libxml2-dev dependency on Debian using apt?

From Dev

How do I fix "Failed to build DependencyGraph: @providesModule naming collision" for a dependency that has been uninstalled?

From Dev

My CSS broke when I fixed another issue, how do I fix my header?

From Dev

How can I fix this HREF issue

From Dev

How can I fix this update Issue?

From Dev

how can I fix this CRUD issue

From Dev

How can i fix this with ListBox issue?

From Dev

How can I fix this Angular $scope issue?

From Dev

How can I fix this Bootstrap layout issue?

From Dev

How can I fix this jquery issue?

Related Related

  1. 1

    How do I fix this dependency issue in Clojure?

  2. 2

    How do I fix this circular dependency?

  3. 3

    How do I fix margin issue in CSS?

  4. 4

    how do i fix this array issue?

  5. 5

    Issue with coding, how do I fix this?

  6. 6

    how do I fix the type mismatch issue?

  7. 7

    How do I fix the npm UNMET PEER DEPENDENCY warning?

  8. 8

    What is this ffmpeg dependency error telling me and how do I fix it?

  9. 9

    How do I fix the missing reboot/shutdown issue in 13.10?

  10. 10

    How do I fix my Bootstrap accordion issue?

  11. 11

    How do I fix control ghosting issue in ListView?

  12. 12

    How do I fix "hard freezing" issue when running games?

  13. 13

    How do I fix the missing reboot/shutdown issue in 13.10?

  14. 14

    How do I fix a cipher mismatch issue with sftp?

  15. 15

    How do I fix my Bootstrap accordion issue?

  16. 16

    How do I run script on startup to fix screen orientation issue?

  17. 17

    How can I fix this dependency issue that broke Makerware with my last update?

  18. 18

    How do I fix broken libxml2-dev dependency on Debian using apt?

  19. 19

    This dependency gives me two versions of one jar. How do I fix this?

  20. 20

    How do I fix broken libxml2-dev dependency on Debian using apt?

  21. 21

    How do I fix "Failed to build DependencyGraph: @providesModule naming collision" for a dependency that has been uninstalled?

  22. 22

    My CSS broke when I fixed another issue, how do I fix my header?

  23. 23

    How can I fix this HREF issue

  24. 24

    How can I fix this update Issue?

  25. 25

    how can I fix this CRUD issue

  26. 26

    How can i fix this with ListBox issue?

  27. 27

    How can I fix this Angular $scope issue?

  28. 28

    How can I fix this Bootstrap layout issue?

  29. 29

    How can I fix this jquery issue?

HotTag

Archive