Skip to content

Maven usage

David edited this page Jul 30, 2013 · 5 revisions

Compiling

If you just want to create the .jar package use this command:

mvn package

If you want to create the .jar package and install the dependency libraries in lib directory located in your project path, use this command:

mvn clean install

Installing repositories locally

This is the default place where the local repositories are stored:

/home/parallels/.m2/repository

For example: if you installed a repository with the command:

mvn install::install-file -Dfile=/home/parallels/storm-rabbitmq-test/target/lib/storm-amqp-spout-0.2.1.jar -DgroupId=com.xorlev.storm -DartifactId=storm-amqp-spout -Dversion=0.2.1 -Dpackaging=jar

then the path where that repository is installed would be:

/home/parallels/.m2/repository/com/xorlev/storm/storm-amqp-spout/0.2.1

pom.xml

Clone this wiki locally