Highlighted

aem 6.4 solr integration

ajinkayk6258253

11-07-2019

Hi all,

im working on solr aem integration and my bundle is in installed state as some of the dependencies are not resolved and as im searching for them in depfinder .it's showing no naven dependency??  i think it is transitive dependency of

<dependency>
  <groupId>org.apache.servicemix.bundles</groupId>
  <artifactId>org.apache.servicemix.bundles.solr-solrj</artifactId>
  <version>7.5.0_1</version>

</dependency>

as i change version of above dependency the below highlighted dependency version changes. pls help

1788858_pastedImage_0.png

Replies

Highlighted

aemmarc

Employee

11-07-2019

Solr 7x, 8x are not supported in AEM.

This all sort of hinders on the underlying version of Lucene that's being used.

Even the latest version of jackrabbit-oak is using Solr 6.6.6 / Lucene 4.7.1

See : https://github.com/apache/jackrabbit-oak/blob/d665e3c3eba82bad0baf7122bdeda507bbb1bfb4/oak-parent/po...

    <lucene.version>4.7.1</lucene.version>

    <solr.version>6.6.6</solr.version>

----

Highlighted

amitkrt

12-07-2019

Silly question but have you embed your dependency in your core pom?

Something like this

<app.bundle-embed-dependency>

solr-solrj,

zookeeper,other dependency;inline=true</app.bundle-embed-dependency>

Highlighted

ajinkayk6258253

12-07-2019

@amitkrt thanks for your polite reply. but unfortunately yes, i have added embed-dependeny in core pom under  plugin with artifiactid maven-bundle-plugin

Highlighted

ajinkayk6258253

12-07-2019

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
  <instructions>
   <!-- Import any version of javax.inject, to allow running on multiple versions of AEM -->
   <Import-Package>javax.inject;version=0.0.0,!com.ibm.*,

  !com.sun.*,

  !javax.jmdns.*,

  !javax.jms.*,

  !jline.*,

  !org.jboss.netty.*,

  !org.relaxng.datatype.*,*

   </Import-Package>
  <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
  <Embed-Directory>OSGI-INF/lib</Embed-Directory>
  <Embed-Transitive>false</Embed-Transitive>
  <Sling-Model-Packages>
   com.solr.test.core

   </Sling-Model-Packages>
  </instructions>
  </configuration>
</plugin>