From 2330c1404a87295ec1b33bdaf0a95ac923cadf6d Mon Sep 17 00:00:00 2001 From: suchit sharma Date: Wed, 5 Feb 2014 18:34:22 +0100 Subject: [PATCH 3/3] added steps for installation with maven --- install-binary.rst | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/install-binary.rst b/install-binary.rst index 4b4774a..c7cbedf 100644 --- a/install-binary.rst +++ b/install-binary.rst @@ -235,7 +235,33 @@ it. These files have to be placed on the Java classpath. Afterwards, the Java implementation of |project| should be usable in any Java program. -.. _install-binary-download: +Installation with Maven +------------------------ + +#. Download |project| from `here + `_ + +#. Provide path for jars to maven + + .. code-block:: sh + + $ mvn install:install-file -DgroupId=rsb -DartifactId=rsb -Dversion=0.11.0 -Dpackaging=jar -Dfile=/usr/share/java/rsb-0.11.0.jar + $ mvn install:install-file -DgroupId=rsb -DartifactId=protobuf -Dversion=2.4.1 -Dpackaging=jar -Dfile=/usr/share/java/protobuf-java-2.4.1.jar + +#. To compile the code with dependency use : + + .. code-block:: sh + + $ mvn clean dependency:copy-dependencies package + +#. To run the jar: + + .. code-block:: sh + + $ java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App + + + .. _install-binary-download: Binary Downloads of Tools ========================= -- 1.7.9.5