Building from Source

Maven setup

The project is built by Maven, so you need to get that up and running at first. I use these maven repositories to download dependencies from:

  • http://dist.codehaus.org/
  • http://www.ibiblio.org/maven/

To make compiling work you have to manually create a jar file with the contents of the WEB-INF/classes directory of xwiki. Copy this into your local maven repository, i.e. ~/.maven/repository/xwiki/jars/xwiki-0.9.840.jar. Make sure the version in the filename matches the version defined in project.xml.

Now typing

maven jar
should give you a xwiki-lucene-plugin-x.y.jar file in target/.

Installation

Just copy the plugin jar and the following libraries to WEB-INF/lib of your xwiki installation:

  • lucene-1.4.3.jar
  • PDFBox-0.6.7a.jar
  • poi-20040624.jar
  • poi-scratchpad-20040624.jar
  • xpp3-1.1.3.4-RC8_min.jar

If you successfully built the plugin jar using maven, those libs can be found in your local maven repository. If you don't want to search for them there, you can use

maven copydeps
to copy them to target/xwiki-lucene-plugin.x.y/bin/xwiki-lucene-plugin.x.y/lib.

For configuring XWiki to recognize the plugin, see Installation