Menu

#306 Building RankLib as stand-alone jar

v1.x
open
nobody
None
1
2018-11-27
2018-11-27
lauradietz
No

Please add the folliowing to the <plugins> section of the RankLib/pom.xml</plugins>

              <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
                <archive>
                    <manifest>
                        <mainClass>ciir.umass.edu.eval.Evaluator</mainClass>
                    </manifest>
                </archive>
            </configuration>
        </plugin>

This way one can build a (stand-alone) executable jar file with maven's
mvn clean compile assembly:single

To run RankLib from the command line as
java -jar target/RankLib-2.11-SNAPSHOT-jar-with-dependencies.jar

Thank you!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB