maven dependency issue for FTS
I want to implement Free Text search using remote Solr server with AEM 6.
I have done the configurations as advised here.
Now I want to demonstrate search using this remote solr server.I have created a search component for this.I have attached the code, pls let me know if this is correct way of connecting to remote solr server.
i am including
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-core</artifactId>
<version>4.3.0</version>
<scope>compile</scope>
</dependency>
in my main parent pom(main pom of maven multimodule project) and
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-core</artifactId>
</dependency>
and
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>searchApp-bundle</Bundle-SymbolicName>
<Embed-Transitive>true</Embed-Transitive>
<Embed-Dependency>*;scope=runtime|compile</Embed-Dependency>
</instructions>
</configuration>
</plugin>
The project compiles fine locally but when I upload it as an osgi bundle the transitive dependencies cause a lot of unresolved dependencies.I wonder I why the transitive dependencies are not icluded in the resulting bundle even after specifying <Embed-Transitive>true</Embed-Transitive>.
Any help or sample code snippet will help a lot.