0003-added-steps-for-installation-with-maven.patch

S. Sharma, 02/05/2014 06:40 PM

Download (1.53 KB)

View differences:

install-binary.rst
235 235
the Java implementation of |project| should be usable in any Java
236 236
program.
237 237

  
238
.. _install-binary-download:
238
Installation with Maven
239
------------------------
240

  
241
#. Download |project| from `here
242
   <https://ci.cor-lab.de/job/rsb-java-trunk/lastSuccessfulBuild/artifact/rsb-java.zip>`_
243

  
244
#. Provide path for jars to maven
245

  
246
   .. code-block:: sh
247

  
248
     $ mvn install:install-file -DgroupId=rsb -DartifactId=rsb -Dversion=0.11.0 -Dpackaging=jar -Dfile=/usr/share/java/rsb-0.11.0.jar
249
     $ mvn install:install-file -DgroupId=rsb -DartifactId=protobuf -Dversion=2.4.1 -Dpackaging=jar -Dfile=/usr/share/java/protobuf-java-2.4.1.jar
250

  
251
#. To compile the code with dependency use :
252

  
253
   .. code-block:: sh
254

  
255
     $ mvn clean dependency:copy-dependencies package
256

  
257
#. To run the jar:
258

  
259
   .. code-block:: sh
260

  
261
     $ java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App
262
   
263

  
264
 .. _install-binary-download:
239 265

  
240 266
Binary Downloads of Tools
241 267
=========================
242
-