Java: Work with Apache Lucene within a Maven Project

In this article i want to show you, which dependencies you need to work with Apache Lucene.

Lucune is a very efficient library to index files, text and more and establish a full text search.

the pom.xml


  4.0.0

  de.professional_webworkx.newsarchive
  TextIndexer
  0.0.1-SNAPSHOT
  jar

  TextIndexer
  http://maven.apache.org

  
    UTF-8
  

  
    
      junit
      junit
      4.11
      test
    
    
		org.apache.lucene
		lucene-core
		4.5.0
	
	
		org.apache.lucene
		lucene-queries
		4.5.0
	
	
		org.apache.lucene
		lucene-test-framework
		4.5.0
	
	
		org.apache.lucene
		lucene-highlighter
		4.5.0
	
	
		org.apache.lucene
		lucene-analyzers-common
		4.5.0
	
	
		org.apache.lucene
		lucene-memory
		4.5.0
	
    
		org.apache.lucene
		lucene-queryparser
		4.5.0
	
    
		org.apache.lucene
		lucene-spellchecker
		3.6.2
	
    
		org.apache.lucene
		lucene-codecs
		4.5.0
	
    
		org.apache.lucene
		lucene-suggest
		4.5.0
	
	
		org.apache.lucene
		lucene-analyzers
		3.6.2
	
  

The above example shows the full pom.xml of a simple quickstart java maven project.
In one of the next articles i’ll show an example which indexes a given directory and in another article we will build a search view.