-
Notifications
You must be signed in to change notification settings - Fork 67
Maven Support
This section explains how to use Maven with HeidelTime.
Maven, as a method of managing and getting packages, is in theory an ideal tool to build HeidelTime in a uniform manner. However, since there are dependencies that none of the public Maven repositories can satisfy, we unfortunately cannot offer a fully integrated Maven solution, or can supply a package downloadable from a central repository. Hence, to use Maven with HeidelTime, we need a few extra steps before we can build.
HeidelTime's source code includes references to the JVnTextPro tool for Vietnamese tokenization. This piece of software does not feature any Maven support, so for an error-free compilation of HeidelTime with Maven, we first need to build JVnTextPro with Maven. We do this by:
- Grabbing and extracting a copy of JVnTextPro
- Moving
$HEIDELTIME_HOME/metadata/jvntextpro-pom.xml
to JVnTextPro's root folder and renaming it intopom.xml
- Building JVnTextPro:
mvn install
- Installing the resulting .jar file into HeidelTime's local repository:
mvn org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file -Dfile=target/jvntextpro-2.0.jar -DgroupId=jvntextpro -DartifactId=jvntextpro -Dversion=2.0 -Dpackaging=jar -DlocalRepositoryPath=$HEIDELTIME_HOME/repo/
- Compiling HeidelTime from within the kit folder:
mvn install