Integrating Apache Lucene and Maven in Eclipse

In two steps we will integrate Apache Lucene and Maven in Eclipse.

First Create Java Project using Maven in Eclipse

Second add lucene dependency in your pom.xml, so you pom.xml should look like this:
pom.xml
[sourcecode language=”xml”]
<project
xmlns="http://maven.apache.org/POM/4.0.0&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
<modelVersion>4.0.0</modelVersion>
<groupId>com.mumz.test.lucene</groupId>
<artifactId>ApacheLuceneTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ApacheLuceneTest</name>
<description>ApacheLuceneTest</description>
<dependencies>
<dependency>
<artifactId>lucene-core</artifactId>
<groupId>org.apache.lucene</groupId>
<type>jar</type>
<version>3.6.1</version>
</dependency>
</dependencies>
</project>
[/sourcecode]

That’s all.


Posted

in

, , , ,

by

Comments

Leave a Reply

Discover more from Code Holic

Subscribe now to keep reading and get access to the full archive.

Continue reading