First, make sure to install Maven2. Then, compile the project and add it to your local repository:
mvn package install
To add this project as Maven dependency, insert the following dependency in your pom.xml
file:
<dependency>
<groupId>edu.nyu.tandon</groupId>
<artifactId>index-utils</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
To run any class, first retrieve the classpath to all the dependencies in your local Maven repository:
mvn dependency:build-classpath [-Dmdep.outputFile=<your-file>]
Then, simply run the desired class:
java -cp <dependencies-classpath> qualified.name.to.YourClass