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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <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>
That’s all.