maven - How do you handle multiple versions of same jar? -
i use apache_gora_0.2.1 , apache nutch_2.1 .
nutch depends on gora.
gora have modules gora-core , gora-hbase.
gora-hbase depends on gora-core.
all modules of gora use avro_1.3.3.jar . want use avro_1.3.3.jar gora-core , avro_1.5.3.jar gora-hbase .
i compiled gora via maven , compiled nutch via ant , ivy.
then seems 2 versions in nutch classpath (avro.1.3.3.jar , avro.1.5.3.jar). if exclude avro_1.5.3.jar via ivy.xml, gora-hbase don't use avro.1.5.3. how can solve problem?
you should avoid situation when have in classpath same jars different versions. solve problem need find version of apache_gora_0.2.1 , apache nutch_2.1 uses similar versions of avro. try use apache nutch_1.6, since apache_gora_0.2.1 latest version. then, exclude lowest version , solve problem.
Comments
Post a Comment