java - SolrJ version mismatch while merging 2 projects -


i have 2 java projects developed using solrj.

project 1 -> using solrj 4.10.1

project 2 -> using solrj 5.2.1

now, trying merge both projects single project.

i tried including both version of jars in maven, still same issue. if try including major version, i'm getting of classes(4.10.1) deprecated , interfaces unavailable in it.

<dependency> <groupid>org.apache.solr</groupid> <artifactid>solr-solrj</artifactid> <version>4.10.1</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>org.apache.solr</groupid> <artifactid>solr-solrj</artifactid> <version>5.2.1</version> </dependency>

in simple:few packages of same project uses different jars.

example: package1/module1 uses : solrj jar version 4.10.1

package2 uses : solrj jar version 5.2.1

is there way merge projects in best way, without change old project ? totally stuck here.

if both projects under same maven project (pom.xml), need update (or downgrade) 1 of implementation. both need use same solrj version. shouldn't hard update. can find details in solr wiki.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -