0005-download-jars-using-repository-tag.patch
0001-Post-release-adjustments-in-index.rst.patch | ||
---|---|---|
1 |
From 7576363a6426665f0f137b76cd9f8cbf32a355ea Mon Sep 17 00:00:00 2001 |
|
2 |
From: Jan Moringen <jmoringe@techfak.uni-bielefeld.de> |
|
3 |
Date: Wed, 15 Jan 2014 20:37:10 +0100 |
|
4 |
Subject: [PATCH 1/2] Post-release adjustments in index.rst |
|
5 | ||
6 |
refs #1688 |
|
7 | ||
8 |
* index.rst: updated suggestion to use stable version |
|
9 |
--- |
|
10 |
index.rst | 2 +- |
|
11 |
1 file changed, 1 insertion(+), 1 deletion(-) |
|
12 | ||
13 |
diff --git a/index.rst b/index.rst |
|
14 |
index 1d6c32f..048600b 100644 |
|
15 |
--- a/index.rst |
|
16 |
+++ b/index.rst |
|
17 |
@@ -19,7 +19,7 @@ systems in diverse environments. |
|
18 |
|
|
19 |
When possible, the most recent stable version of |project| should |
|
20 |
be used instead. That version is described in a `separate manual |
|
21 |
- <../../0.9/html/index.html>`_. |
|
22 |
+ <../../0.10/html/index.html>`_. |
|
23 |
|
|
24 |
.. toctree:: |
|
25 |
:hidden: |
|
26 |
-- |
|
27 |
1.7.9.5 |
|
28 |
0001-updated-for-maven-installation-steps.patch | ||
---|---|---|
1 |
From d3b4110521ef4c298c9f0a7e77c5b98d4a4fef75 Mon Sep 17 00:00:00 2001 |
|
2 |
From: suchit sharma <ssharma@TechFak.Uni-Bielefeld.DE> |
|
3 |
Date: Wed, 29 Jan 2014 20:50:45 +0100 |
|
4 |
Subject: [PATCH 1/4] updated for maven installation steps |
|
5 | ||
6 |
--- |
|
7 |
install-java.rst | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- |
|
8 |
1 file changed, 152 insertions(+), 3 deletions(-) |
|
9 | ||
10 |
diff --git a/install-java.rst b/install-java.rst |
|
11 |
index 9a4ef72..cc4ed48 100644 |
|
12 |
--- a/install-java.rst |
|
13 |
+++ b/install-java.rst |
|
14 |
@@ -21,7 +21,7 @@ Required Dependencies |
|
15 |
* |ubuntu| packages (``libprotobuf-java``, |
|
16 |
``protobuf-compiler``) are OK |
|
17 |
|
|
18 |
-* `Apache Ant`_ |
|
19 |
+* `Apache Ant`_ / ´Maven`_ |
|
20 |
|
|
21 |
* :term:`Spread daemon` |
|
22 |
|
|
23 |
@@ -125,6 +125,11 @@ Installation of RSC and RSBProtocol |
|
24 |
|
|
25 |
Installation of RSBJava |
|
26 |
======================= |
|
27 |
+* Installation of |project| Java with `Apache Ant`_. |
|
28 |
+* Installation of |project| Java with ´Maven`_ |
|
29 |
+ |
|
30 |
+Installation with Apache Ant |
|
31 |
+----------------------------- |
|
32 |
|
|
33 |
#. Checkout |project| and its immediate dependencies from |
|
34 |
|repository_versioned_java|. |
|
35 |
@@ -182,8 +187,8 @@ Installation of RSBJava |
|
36 |
|
|
37 |
$ ant install |
|
38 |
|
|
39 |
-Testing the Installation |
|
40 |
-======================== |
|
41 |
+Testing the Ant Installation |
|
42 |
+----------------------------- |
|
43 |
|
|
44 |
The Java implementation of |project| comes with a set of unit tests, |
|
45 |
which you may use to check the compiled code. Executing the test suite |
|
46 |
@@ -249,3 +254,147 @@ excerpt): |
|
47 |
|
|
48 |
If no failed test cases are reported, the Java implementation of |
|
49 |
|project| is likely to work correctly on your machine. |
|
50 |
+ |
|
51 |
+Installation with Maven |
|
52 |
+------------------------ |
|
53 |
+ |
|
54 |
+#. Checkout |project| and its immediate dependencies from |
|
55 |
+ |repository_versioned_java|. |
|
56 |
+ |
|
57 |
+#. Run :file:`mvnprep.sh` in rsb.git.java folder from commandline: |
|
58 |
+ |
|
59 |
+.. code-block:: sh |
|
60 |
+ |
|
61 |
+ $ cd rsb.git.java |
|
62 |
+ |
|
63 |
+ $ ./mvnprep.sh |
|
64 |
+ |
|
65 |
+#. Invoke :program:`mvn` supplying build properties on the commandline |
|
66 |
+ or via file:`pom.xml` (see below) |
|
67 |
+ |
|
68 |
+ The following properties are used to configure the build: |
|
69 |
+ |
|
70 |
+ ================== ================================================================================= ==================================== |
|
71 |
+ Maven Property Meaning Example |
|
72 |
+ ================== ================================================================================= ==================================== |
|
73 |
+ ``pbuf.protoc`` Location of protocol buffer compiler (:program:`protoc` or :program:`protoc.exe`) :file:`/usr/bin/protoc` |
|
74 |
+ ``pbuf.protopath`` Location of |project| protocol IDL files (see TODO) :file:`/vol/cit/share/rsbprotocol` |
|
75 |
+ ``spread.daemon`` Location of :term:`Spread daemon` executable :file:`/vol/cit/sbin/spread` |
|
76 |
+ ================== ================================================================================= ==================================== |
|
77 |
+ |
|
78 |
+ All properties can be supplied on the :program:`mvn` commandline |
|
79 |
+ using the :samp:`-D{NAME}={VALUE}` syntax or by editing a |
|
80 |
+ :file:`pom.xml` file containing lines of the form |
|
81 |
+ :samp:`<NAME>{VALUE}</NAME>`. |
|
82 |
+ |
|
83 |
+ An exemplary ``mvn clean package`` command, which builds the |project| jar |
|
84 |
+ library, may look as follows: |
|
85 |
+ |
|
86 |
+ .. code-block:: sh |
|
87 |
+ |
|
88 |
+ $ mvn clean package \ |
|
89 |
+ -Dpbuf.protoc=/usr/bin/protoc \ |
|
90 |
+ -Dpbuf.protopath=/vol/cit/share/rsbprotocol \ |
|
91 |
+ -Dspread.daemon=/vol/cit/sbin/spread |
|
92 |
+ |
|
93 |
+ The equivalent :file:`pom.xml` file looks like this: |
|
94 |
+ |
|
95 |
+ .. code-block:: ini |
|
96 |
+ |
|
97 |
+ <properties> |
|
98 |
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
99 |
+ <pbuf.protopath>/vol/cit/share/rsbprotocol</pbuf.protopath> |
|
100 |
+ <pbuf.protoc>/usr/bin/protoc</pbuf.protoc> |
|
101 |
+ <pbuf.version>2.4.1</pbuf.version> |
|
102 |
+ <pbuf.outpath>target/generated-protocol</pbuf.outpath> |
|
103 |
+ <spread.daemon>/vol/cit/sbin/spread</spread.daemon> |
|
104 |
+ <target.java.version>1.6</target.java.version> |
|
105 |
+ </properties> |
|
106 |
+ |
|
107 |
+ |
|
108 |
+ In the presence of this file, the :program:`mvn` command reduces to |
|
109 |
+ ``maven clean package``. |
|
110 |
+ |
|
111 |
+#. Installation of Java archive |
|
112 |
+ |
|
113 |
+ To install |project| jars into the configured prefix (e.g., into |
|
114 |
+ :samp:`{PREFIX}/share/java`), the following :program:`mvn` command |
|
115 |
+ can be used :file:`pom.xml` is not configured as mentioned earlier: |
|
116 |
+ |
|
117 |
+ .. code-block:: sh |
|
118 |
+ |
|
119 |
+ $ mvn clean install \ |
|
120 |
+ -Dpbuf.protoc=/usr/bin/protoc \ |
|
121 |
+ -Dpbuf.protopath=/vol/cit/share/rsbprotocol \ |
|
122 |
+ -Dspread.daemon=/vol/cit/sbin/spread |
|
123 |
+ |
|
124 |
+ or when :file:`pom.xml` is configured : |
|
125 |
+ |
|
126 |
+ .. code-block:: sh |
|
127 |
+ |
|
128 |
+ $ mvn clean install |
|
129 |
+ |
|
130 |
+Testing the Maven Installation |
|
131 |
+------------------------------- |
|
132 |
+ |
|
133 |
+The Java implementation of |project| comes with a set of unit tests, |
|
134 |
+which you may use to check the compiled code. Executing the test suite |
|
135 |
+is straightforward. To do so, the following :program:`mvn` target |
|
136 |
+needs to be invoked (please note that a :term:`Spread daemon` is |
|
137 |
+automatically started by the :program:`mvn` script): |
|
138 |
+ |
|
139 |
+When :file:`pom.xml` is configured : |
|
140 |
+ |
|
141 |
+.. code-block:: sh |
|
142 |
+ |
|
143 |
+ $ mvn clean test |
|
144 |
+ |
|
145 |
+or when :file:`pom.xml` is not configured : |
|
146 |
+ |
|
147 |
+.. code-block:: sh |
|
148 |
+ |
|
149 |
+ $ mvn clean test \ |
|
150 |
+ -Dpbuf.protoc=/opt/local/bin/protoc \ |
|
151 |
+ -Dpbuf.protopath=/vol/cit/share/RSBProtocol \ |
|
152 |
+ -Dspread.daemon=/vol/cit/sbin/spread |
|
153 |
+ |
|
154 |
+ |
|
155 |
+You should see a console output similar to the following (shortened |
|
156 |
+excerpt): |
|
157 |
+ |
|
158 |
+.. code-block:: sh |
|
159 |
+ |
|
160 |
+ $ mvn -Dpbuf.protoc=/opt/local/bin/protoc \ |
|
161 |
+ -Dpbuf.protopath=/vol/cit/share/RSBProtocol \ |
|
162 |
+ -Dspread.daemon=/vol/cit/sbin/spread \ |
|
163 |
+ test |
|
164 |
+ [INFO] Scanning for projects... |
|
165 |
+ [INFO] |
|
166 |
+ [INFO] ------------------------------------------------------------------------ |
|
167 |
+ [INFO] Building RSB 0.11-SNAPSHOT |
|
168 |
+ [INFO] ------------------------------------------------------------------------ |
|
169 |
+ [INFO] |
|
170 |
+ . |
|
171 |
+ .. |
|
172 |
+ ... |
|
173 |
+ |
|
174 |
+ |
|
175 |
+ Results : |
|
176 |
+ |
|
177 |
+ Tests run: 175, Failures: 0, Errors: 0, Skipped: 0 |
|
178 |
+ |
|
179 |
+ [INFO] |
|
180 |
+ [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:report (post-unit-test) @ rsb --- |
|
181 |
+ [INFO] ------------------------------------------------------------------------ |
|
182 |
+ [INFO] BUILD SUCCESS |
|
183 |
+ [INFO] ------------------------------------------------------------------------ |
|
184 |
+ [INFO] Total time: 27.010s |
|
185 |
+ [INFO] Finished at: Wed Jan 29 19:59:08 CET 2014 |
|
186 |
+ [INFO] Final Memory: 25M/193M |
|
187 |
+ [INFO] ------------------------------------------------------------------------ |
|
188 |
+ [exec] Result: 143 |
|
189 |
+ |
|
190 |
+ |
|
191 |
+ |
|
192 |
+If no failed test cases are reported, the Java implementation of |
|
193 |
+|project| is likely to work correctly on your machine. |
|
194 |
-- |
|
195 |
1.7.9.5 |
|
196 |
0002-Updated-dependencies-in-install-cl.rst.patch | ||
---|---|---|
1 |
From b91bd8f82ea23d57660479350a401c5774e08209 Mon Sep 17 00:00:00 2001 |
|
2 |
From: Jan Moringen <jmoringe@techfak.uni-bielefeld.de> |
|
3 |
Date: Sun, 26 Jan 2014 22:19:32 +0100 |
|
4 |
Subject: [PATCH 2/2] Updated dependencies in install-cl.rst |
|
5 | ||
6 |
* install-cl.rst (External Dependencies): updated dependency list |
|
7 |
--- |
|
8 |
install-cl.rst | 56 +++++++++++++++++++++++++++----------------------------- |
|
9 |
1 file changed, 27 insertions(+), 29 deletions(-) |
|
10 | ||
11 |
diff --git a/install-cl.rst b/install-cl.rst |
|
12 |
index 48aa298..22ecbce 100644 |
|
13 |
--- a/install-cl.rst |
|
14 |
+++ b/install-cl.rst |
|
15 |
@@ -22,28 +22,32 @@ Required Infrastructure |
|
16 |
External Dependencies |
|
17 |
--------------------- |
|
18 |
|
|
19 |
-==================== ========================= =============== |
|
20 |
-System Required Obtainable From |
|
21 |
-==================== ========================= =============== |
|
22 |
-alexandria yes Quicklisp |
|
23 |
-split-sequence yes Quicklisp |
|
24 |
-iterate yes Quicklisp |
|
25 |
-metabang-bind yes Quicklisp |
|
26 |
-bordeaux-threads yes Quicklisp |
|
27 |
-closer-mop yes Quicklisp |
|
28 |
-log5 yes Quicklisp |
|
29 |
-puri yes Quicklisp |
|
30 |
-uuid yes Quicklisp |
|
31 |
-local-time yes Quicklisp |
|
32 |
-cl-hooks yes https://launchpad.net/cl-hooks |
|
33 |
-cl-dynamic-classes yes |repository_versioned_cl| at ``cl-dynamic-classes`` |
|
34 |
-cl-ppcre for Regexp filtering Quicklisp |
|
35 |
-cxml-stp for XML event data Quicklisp |
|
36 |
-xpath for XPath event filtering Quicklisp |
|
37 |
-cl-protobuf for Spread transport |repository_versioned_cl| at ``cl-protobuf`` |
|
38 |
-cl-spread for Spread transport |repository_versioned_cl| at ``cl-spread`` |
|
39 |
--- libspread for Spread transport See :ref:`C++ installation instructions <install-cpp>` |
|
40 |
-==================== ========================= =============== |
|
41 |
+==================== ==================================== ====================================================== |
|
42 |
+System Required? Obtainable From |
|
43 |
+==================== ==================================== ====================================================== |
|
44 |
+alexandria yes Quicklisp |
|
45 |
+split-sequence yes Quicklisp |
|
46 |
+iterate yes Quicklisp |
|
47 |
+let-plus yes Quicklisp |
|
48 |
+more-conditions yes Quicklisp |
|
49 |
+bordeaux-threads yes Quicklisp |
|
50 |
+lparallel yes Quicklisp |
|
51 |
+trivial-garbage yes Quicklisp |
|
52 |
+closer-mop yes Quicklisp |
|
53 |
+cl-hooks yes Quicklisp |
|
54 |
+cl-dynamic-classes yes - |
|
55 |
+log4cl yes Quicklisp |
|
56 |
+nibbles yes Quicklisp |
|
57 |
+puri yes Quicklisp |
|
58 |
+uuid yes Quicklisp |
|
59 |
+local-time yes Quicklisp |
|
60 |
+cl-ppcre for Regexp filtering Quicklisp |
|
61 |
+cxml-stp for XML :term:`payload` Quicklisp |
|
62 |
+xpath for XPath filtering Quicklisp |
|
63 |
+cl-protobuf for :term:`Spread` :term:`transport` - |
|
64 |
+network.spread for :term:`Spread` :term:`transport` http://github.com/scymtym/network.spread |
|
65 |
+-- libspread for :term:`Spread` :term:`transport` See :ref:`C++ installation instructions <install-cpp>` |
|
66 |
+==================== ==================================== ====================================================== |
|
67 |
|
|
68 |
Installation |
|
69 |
============ |
|
70 |
@@ -53,15 +57,9 @@ Installation |
|
71 |
|
|
72 |
#. Install other required systems: |
|
73 |
|
|
74 |
- * ``cl-hooks`` |
|
75 |
- |
|
76 |
- .. code-block:: sh |
|
77 |
- |
|
78 |
- bzr branch lp:cl-hooks |
|
79 |
- |
|
80 |
* ``cl-dynamic-classes`` |
|
81 |
* ``cl-protobuf`` |
|
82 |
- * ``cl-spread`` |
|
83 |
+ * ``network.spread`` |
|
84 |
|
|
85 |
#. Load ``cl-rsb`` with `Quicklisp`_ to pull in remaining dependencies |
|
86 |
|
|
87 |
-- |
|
88 |
1.7.9.5 |
|
89 |
0002-updates-for-maven-installation.patch | ||
---|---|---|
1 |
From 6e2859e89752ea1b81f169728cfa1d9ed1fdcc1f Mon Sep 17 00:00:00 2001 |
|
2 |
From: suchit sharma <ssharma@TechFak.Uni-Bielefeld.DE> |
|
3 |
Date: Thu, 30 Jan 2014 19:10:04 +0100 |
|
4 |
Subject: [PATCH 2/4] updates for maven installation |
|
5 | ||
6 |
--- |
|
7 |
conf.py.in | 2 ++ |
|
8 |
install-java.rst | 26 +++++++++++++++----------- |
|
9 |
2 files changed, 17 insertions(+), 11 deletions(-) |
|
10 | ||
11 |
diff --git a/conf.py.in b/conf.py.in |
|
12 |
index 6e47574..37f9bcb 100644 |
|
13 |
--- a/conf.py.in |
|
14 |
+++ b/conf.py.in |
|
15 |
@@ -134,6 +134,8 @@ rst_prolog = """ |
|
16 |
.. _boost: http://www.boost.org/ |
|
17 |
.. _boost.uuid: http://www.boost.org/doc/libs/1_42_0/libs/uuid/uuid.html |
|
18 |
|
|
19 |
+.. _Maven: http://maven.apache.org/ |
|
20 |
+ |
|
21 |
.. _apache ant: http://ant.apache.org/ |
|
22 |
.. _javadoc: http://www.oracle.com/technetwork/java/javase/documentation/index-jsp-135444.html |
|
23 |
|
|
24 |
diff --git a/install-java.rst b/install-java.rst |
|
25 |
index cc4ed48..6ae503e 100644 |
|
26 |
--- a/install-java.rst |
|
27 |
+++ b/install-java.rst |
|
28 |
@@ -21,7 +21,7 @@ Required Dependencies |
|
29 |
* |ubuntu| packages (``libprotobuf-java``, |
|
30 |
``protobuf-compiler``) are OK |
|
31 |
|
|
32 |
-* `Apache Ant`_ / ´Maven`_ |
|
33 |
+* `Apache Ant`_ / `Maven`_ |
|
34 |
|
|
35 |
* :term:`Spread daemon` |
|
36 |
|
|
37 |
@@ -126,7 +126,7 @@ Installation of RSC and RSBProtocol |
|
38 |
Installation of RSBJava |
|
39 |
======================= |
|
40 |
* Installation of |project| Java with `Apache Ant`_. |
|
41 |
-* Installation of |project| Java with ´Maven`_ |
|
42 |
+* Installation of |project| Java with `Maven`_ |
|
43 |
|
|
44 |
Installation with Apache Ant |
|
45 |
----------------------------- |
|
46 |
@@ -261,12 +261,11 @@ Installation with Maven |
|
47 |
#. Checkout |project| and its immediate dependencies from |
|
48 |
|repository_versioned_java|. |
|
49 |
|
|
50 |
-#. Run :file:`mvnprep.sh` in rsb.git.java folder from commandline: |
|
51 |
+#. Run :file:`mvnprep.sh` in :file:`rsb.git.java` folder from commandline: |
|
52 |
|
|
53 |
.. code-block:: sh |
|
54 |
|
|
55 |
$ cd rsb.git.java |
|
56 |
- |
|
57 |
$ ./mvnprep.sh |
|
58 |
|
|
59 |
#. Invoke :program:`mvn` supplying build properties on the commandline |
|
60 |
@@ -297,9 +296,9 @@ Installation with Maven |
|
61 |
-Dpbuf.protopath=/vol/cit/share/rsbprotocol \ |
|
62 |
-Dspread.daemon=/vol/cit/sbin/spread |
|
63 |
|
|
64 |
- The equivalent :file:`pom.xml` file looks like this: |
|
65 |
+ The equivalent changes can be done in :file:`pom.xml` file which then looks like this: |
|
66 |
|
|
67 |
- .. code-block:: ini |
|
68 |
+ .. code-block:: xml |
|
69 |
|
|
70 |
<properties> |
|
71 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
72 |
@@ -312,8 +311,12 @@ Installation with Maven |
|
73 |
</properties> |
|
74 |
|
|
75 |
|
|
76 |
- In the presence of this file, the :program:`mvn` command reduces to |
|
77 |
- ``maven clean package``. |
|
78 |
+ In the presence of this file :file:`pom.xml` , the :program:`mvn` command reduces to: |
|
79 |
+ |
|
80 |
+ .. code-block:: sh |
|
81 |
+ |
|
82 |
+ $ mvn clean package |
|
83 |
+ |
|
84 |
|
|
85 |
#. Installation of Java archive |
|
86 |
|
|
87 |
@@ -364,10 +367,11 @@ excerpt): |
|
88 |
|
|
89 |
.. code-block:: sh |
|
90 |
|
|
91 |
- $ mvn -Dpbuf.protoc=/opt/local/bin/protoc \ |
|
92 |
+ $ mvn clean test \ |
|
93 |
+ -Dpbuf.protoc=/opt/local/bin/protoc \ |
|
94 |
-Dpbuf.protopath=/vol/cit/share/RSBProtocol \ |
|
95 |
- -Dspread.daemon=/vol/cit/sbin/spread \ |
|
96 |
- test |
|
97 |
+ -Dspread.daemon=/vol/cit/sbin/spread |
|
98 |
+ |
|
99 |
[INFO] Scanning for projects... |
|
100 |
[INFO] |
|
101 |
[INFO] ------------------------------------------------------------------------ |
|
102 |
-- |
|
103 |
1.7.9.5 |
|
104 |
0003-added-steps-for-installation-with-maven.patch | ||
---|---|---|
1 |
From 2330c1404a87295ec1b33bdaf0a95ac923cadf6d Mon Sep 17 00:00:00 2001 |
|
2 |
From: suchit sharma <ssharma@TechFak.Uni-Bielefeld.DE> |
|
3 |
Date: Wed, 5 Feb 2014 18:34:22 +0100 |
|
4 |
Subject: [PATCH 3/4] added steps for installation with maven |
|
5 | ||
6 |
--- |
|
7 |
install-binary.rst | 28 +++++++++++++++++++++++++++- |
|
8 |
1 file changed, 27 insertions(+), 1 deletion(-) |
|
9 | ||
10 |
diff --git a/install-binary.rst b/install-binary.rst |
|
11 |
index 4b4774a..c7cbedf 100644 |
|
12 |
--- a/install-binary.rst |
|
13 |
+++ b/install-binary.rst |
|
14 |
@@ -235,7 +235,33 @@ it. These files have to be placed on the Java classpath. Afterwards, |
|
15 |
the Java implementation of |project| should be usable in any Java |
|
16 |
program. |
|
17 |
|
|
18 |
-.. _install-binary-download: |
|
19 |
+Installation with Maven |
|
20 |
+------------------------ |
|
21 |
+ |
|
22 |
+#. Download |project| from `here |
|
23 |
+ <https://ci.cor-lab.de/job/rsb-java-trunk/lastSuccessfulBuild/artifact/rsb-java.zip>`_ |
|
24 |
+ |
|
25 |
+#. Provide path for jars to maven |
|
26 |
+ |
|
27 |
+ .. code-block:: sh |
|
28 |
+ |
|
29 |
+ $ mvn install:install-file -DgroupId=rsb -DartifactId=rsb -Dversion=0.11.0 -Dpackaging=jar -Dfile=/usr/share/java/rsb-0.11.0.jar |
|
30 |
+ $ mvn install:install-file -DgroupId=rsb -DartifactId=protobuf -Dversion=2.4.1 -Dpackaging=jar -Dfile=/usr/share/java/protobuf-java-2.4.1.jar |
|
31 |
+ |
|
32 |
+#. To compile the code with dependency use : |
|
33 |
+ |
|
34 |
+ .. code-block:: sh |
|
35 |
+ |
|
36 |
+ $ mvn clean dependency:copy-dependencies package |
|
37 |
+ |
|
38 |
+#. To run the jar: |
|
39 |
+ |
|
40 |
+ .. code-block:: sh |
|
41 |
+ |
|
42 |
+ $ java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App |
|
43 |
+ |
|
44 |
+ |
|
45 |
+ .. _install-binary-download: |
|
46 |
|
|
47 |
Binary Downloads of Tools |
|
48 |
========================= |
|
49 |
-- |
|
50 |
1.7.9.5 |
|
51 |
0004-updated-for-entries-in-pom.xml.patch | ||
---|---|---|
1 |
From 51a5459ff30a8e35ed7047855e5d485a01991fe5 Mon Sep 17 00:00:00 2001 |
|
2 |
From: suchit sharma <ssharma@TechFak.Uni-Bielefeld.DE> |
|
3 |
Date: Wed, 5 Feb 2014 19:29:04 +0100 |
|
4 |
Subject: [PATCH 4/4] updated for entries in pom.xml |
|
5 | ||
6 |
Please enter the commit message for your changes. Lines starting |
|
7 |
--- |
|
8 |
install-binary.rst | 20 +++++++++++++++++++- |
|
9 |
1 file changed, 19 insertions(+), 1 deletion(-) |
|
10 | ||
11 |
diff --git a/install-binary.rst b/install-binary.rst |
|
12 |
index c7cbedf..3e96cbf 100644 |
|
13 |
--- a/install-binary.rst |
|
14 |
+++ b/install-binary.rst |
|
15 |
@@ -248,6 +248,24 @@ Installation with Maven |
|
16 |
$ mvn install:install-file -DgroupId=rsb -DartifactId=rsb -Dversion=0.11.0 -Dpackaging=jar -Dfile=/usr/share/java/rsb-0.11.0.jar |
|
17 |
$ mvn install:install-file -DgroupId=rsb -DartifactId=protobuf -Dversion=2.4.1 -Dpackaging=jar -Dfile=/usr/share/java/protobuf-java-2.4.1.jar |
|
18 |
|
|
19 |
+#. The following changes need to be done in :file:`pom.xml` file which then looks like this: |
|
20 |
+ |
|
21 |
+ .. code-block:: xml |
|
22 |
+ |
|
23 |
+ <dependency> |
|
24 |
+ <groupId>rsb</groupId> |
|
25 |
+ <artifactId>rsb</artifactId> |
|
26 |
+ <version>0.11.0</version> |
|
27 |
+ <scope>compile</scope> |
|
28 |
+ </dependency> |
|
29 |
+ <dependency> |
|
30 |
+ <groupId>rsb</groupId> |
|
31 |
+ <artifactId>protobuf</artifactId> |
|
32 |
+ <version>2.4.1</version> |
|
33 |
+ <scope>compile</scope> |
|
34 |
+ </dependency> |
|
35 |
+ |
|
36 |
+ |
|
37 |
#. To compile the code with dependency use : |
|
38 |
|
|
39 |
.. code-block:: sh |
|
40 |
@@ -258,7 +276,7 @@ Installation with Maven |
|
41 |
|
|
42 |
.. code-block:: sh |
|
43 |
|
|
44 |
- $ java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App |
|
45 |
+ $ java -cp target/my-app-1.0-SNAPSHOT-jar.jar com.mycompany.app.App |
|
46 |
|
|
47 |
|
|
48 |
.. _install-binary-download: |
|
49 |
-- |
|
50 |
1.7.9.5 |
|
51 |
install-binary.rst | ||
---|---|---|
238 | 238 |
Installation with Maven |
239 | 239 |
------------------------ |
240 | 240 | |
241 |
#. Download |project| from `here |
|
242 |
<https://ci.cor-lab.de/job/rsb-java-trunk/lastSuccessfulBuild/artifact/rsb-java.zip>`_ |
|
241 |
#. The following changes need to be done in :file:`pom.xml` |
|
243 | 242 | |
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 |
|
243 |
Add dependency for rsb jar: |
|
244 |
|
|
245 |
.. code-block:: xml |
|
250 | 246 | |
251 |
#. The following changes need to be done in :file:`pom.xml` file which then looks like this: |
|
247 |
<dependencies> |
|
248 |
<dependency> |
|
249 |
<groupId>rsb</groupId> |
|
250 |
<artifactId>rsb</artifactId> |
|
251 |
<version>0.11-SNAPSHOT</version> |
|
252 |
</dependency> |
|
253 |
</dependencies> |
|
252 | 254 | |
255 |
Add repository information for downloading rsb jar: |
|
256 |
|
|
253 | 257 |
.. code-block:: xml |
254 | ||
255 |
<dependency> |
|
256 |
<groupId>rsb</groupId> |
|
257 |
<artifactId>rsb</artifactId> |
|
258 |
<version>0.11.0</version> |
|
259 |
<scope>compile</scope> |
|
260 |
</dependency> |
|
261 |
<dependency> |
|
262 |
<groupId>rsb</groupId> |
|
263 |
<artifactId>protobuf</artifactId> |
|
264 |
<version>2.4.1</version> |
|
265 |
<scope>compile</scope> |
|
266 |
</dependency> |
|
267 |
|
|
268 |
|
|
258 |
|
|
259 |
<repositories> |
|
260 |
<repository> |
|
261 |
<id>citec</id> |
|
262 |
<name>CITEC Maven Repository Server</name> |
|
263 |
<url>http://repo.cit-ec.uni-bielefeld.de/</url> |
|
264 |
<layout>default</layout> |
|
265 |
<releases> |
|
266 |
<enabled>true</enabled> |
|
267 |
</releases> |
|
268 |
<snapshots> |
|
269 |
<enabled>true</enabled> |
|
270 |
</snapshots> |
|
271 |
</repository> |
|
272 |
</repositories> |
|
273 |
|
|
269 | 274 |
#. To compile the code with dependency use : |
270 | ||
275 |
|
|
271 | 276 |
.. code-block:: sh |
272 | 277 | |
273 | 278 |
$ mvn clean dependency:copy-dependencies package |
274 | ||
279 |
|
|
275 | 280 |
#. To run the jar: |
276 | 281 | |
277 | 282 |
.. code-block:: sh |
278 |
- |