0001-Updated-for-maven-installation.patch
user-tutorial.rst | ||
---|---|---|
75 | 75 |
|project| depends on `Google Protocol Buffers`_. So make sure that |
76 | 76 |
their jar file is also available on the classpath. |
77 | 77 | |
78 |
Installation with Maven |
|
79 |
------------------------ |
|
80 | ||
81 |
#. The following changes need to be done in :file:`pom.xml` |
|
82 | ||
83 |
Add dependency for rsb jar: |
|
84 |
|
|
85 |
.. code-block:: xml |
|
86 | ||
87 |
<dependencies> |
|
88 |
<dependency> |
|
89 |
<groupId>rsb</groupId> |
|
90 |
<artifactId>rst</artifactId> |
|
91 |
<version>0.11-SNAPSHOT</version> |
|
92 |
</dependency> |
|
93 |
</dependencies> |
|
94 | ||
95 |
Add repository information for downloading rsb jar: |
|
96 |
|
|
97 |
.. code-block:: xml |
|
98 |
|
|
99 |
<repositories> |
|
100 |
<repository> |
|
101 |
<id>citec</id> |
|
102 |
<name>CITEC Maven Repository Server</name> |
|
103 |
<url>http://repo.cit-ec.uni-bielefeld.de/</url> |
|
104 |
<layout>default</layout> |
|
105 |
<releases> |
|
106 |
<enabled>true</enabled> |
|
107 |
</releases> |
|
108 |
<snapshots> |
|
109 |
<enabled>true</enabled> |
|
110 |
</snapshots> |
|
111 |
</repository> |
|
112 |
</repositories> |
|
113 |
|
|
114 |
#. To compile the code with dependency use : |
|
115 |
|
|
116 |
.. code-block:: sh |
|
117 | ||
118 |
$ mvn clean dependency:copy-dependencies package |
|
119 |
|
|
120 |
#. To run the jar: |
|
121 | ||
122 |
.. code-block:: sh |
|
123 | ||
124 |
$ java -cp target/my-app-1.0-SNAPSHOT-jar.jar com.mycompany.app.App |
|
125 |
|
|
78 | 126 |
.. _user-tutorial-python: |
79 | 127 | |
80 | 128 |
Python |
81 |
- |