Setup
Maven
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>2.4.1</version>
</dependency>
Build from SVN
Lucene Core
Checkout Lucene from the Subversion repository: http://svn.apache.org/repos/asf/lucene/java/trunk
Note: The CVS repository is still accessible but is out of date.
I downloaded to:
C:\src\lucene-svn\
To build (using ANT):
cd C:\src\lucene-svn\ ant
The following jar file is produced:
C:\src\lucene-svn\build\lucene-core-2.0-rc1-dev.jar
Using Maven 2:
To add the jar file to the Maven 2 repository:
cd C:\src\lucene-svn\build\ mvn install:install-file -DgroupId=lucene -DartifactId=lucene-core -Dversion=2.0-rc1-dev -Dfile=lucene-core-2.0-rc1-dev.jar -Dpackaging=jar -DgeneratePom=true
To deploy to a remote Maven 2 repository (Note: This command will only work at a Windows command prompt as the url is in Windows format):
mvn deploy:deploy-file -DgroupId=lucene -DartifactId=lucene-core -Dversion=2.0-rc1-dev -Dfile=lucene-core-2.0-rc1-dev.jar -Dpackaging=jar -DgeneratePom=true -DrepositoryId=myserver -Durl=file:\\myserver\Maven2Repository\repository
Snowball Stemming
To build (using ANT):
cd C:\src\lucene-svn\contrib\snowball\ ant
The following jar file is produced:
C:\src\lucene-svn\build\contrib\snowball\lucene-snowball-2.0-rc1-dev.jar
Using Maven 2:
To add the jar file to the Maven 2 repository:
cd C:\src\lucene-svn\build\contrib\snowball\ mvn install:install-file -DgroupId=lucene -DartifactId=lucene-snowball -Dversion=2.0-rc1-dev -Dfile=lucene-snowball-2.0-rc1-dev.jar -Dpackaging=jar -DgeneratePom=true
To deploy to a remote Maven 2 repository (Note: These commands only work in a Windows command prompt as the url is in Windows format):
mvn deploy:deploy-file -DgroupId=lucene -DartifactId=lucene-snowball -Dversion=2.0-rc1-dev -Dfile=lucene-snowball-2.0-rc1-dev.jar -Dpackaging=jar -DgeneratePom=true -DrepositoryId=myserver -Durl=file:\\myserver\Maven2Repository\repository
Index Accessor
Checkout http://myserver/svn/projects/lucene-access/branches/lucene-access
I checked out to:
C:\src\lucene-access\
Read the build instructions within the site documentation…