Thanks Steve, I could find solr-core.jar in the repo but could not find apache-solr-core.jar. I think my issue got misunderstood - which is totally my fault.
Anyway, I took into account Shawn's comment and will use solr-core.jar only for compiling the project - not for deploying. Thanks, Sandeep On 21 May 2013 16:46, Steve Rowe <sar...@gmail.com> wrote: > The 4.0 solr-core jar is available in Maven Central: < > http://search.maven.org/#artifactdetails%7Corg.apache.solr%7Csolr-core%7C4.0.0%7Cjar > > > > Steve > > On May 21, 2013, at 11:26 AM, Sandeep Mestry <sanmes...@gmail.com> wrote: > > > Hi Steve, > > > > Solr 4.0 - mentioned in the subject.. :-) > > > > Thanks, > > Sandeep > > > > > > On 21 May 2013 14:58, Steve Rowe <sar...@gmail.com> wrote: > > > >> Sandeep, > >> > >> What version of Solr are you using? > >> > >> Steve > >> > >> On May 21, 2013, at 6:55 AM, Sandeep Mestry <sanmes...@gmail.com> > wrote: > >> > >>> Hi Shawn, > >>> > >>> Thanks for your reply. > >>> > >>> I'm not mixing versions. > >>> The problem I faced is I want to override Highlighter from solr-core > jar > >>> and if I add that as a dependency in my project then there was a clash > >>> between solr-core.jar and the apache-solr-core.jar that comes bundled > >>> within the solr distribution. It was complaining about > >> MorfologikFilterFactory > >>> classcastexception. > >>> I can't use apache-solr-core.jar as a dependency as no such jar exists > in > >>> any maven repo. > >>> > >>> The only thing I could do is to remove apache-solr-core.jar from > solr.war > >>> and then use solr-core.jar as a dependency - however I do not think > this > >> is > >>> the ideal solution. > >>> > >>> Thanks, > >>> Sandeep > >>> > >>> > >>> On 20 May 2013 15:18, Shawn Heisey <s...@elyograg.org> wrote: > >>> > >>>> On 5/20/2013 8:01 AM, Sandeep Mestry wrote: > >>>>> And I do remember the discussion on the forum about dropping the name > >>>>> *apache* from solr jars. If that's what caused this issue, then can > you > >>>>> tell me if the mirrors need updating with solr-core.jar instead of > >>>>> apache-solr-core.jar? > >>>> > >>>> If it's named apache-solr-core, then it's from 4.0 or earlier. If > it's > >>>> named solr-core, then it's from 4.1 or later. That might mean that > you > >>>> are mixing versions - don't do that. Make sure that you have jars > from > >>>> the exact same version as your server. > >>>> > >>>> Thanks, > >>>> Shawn > >>>> > >>>> > >> > >> > >