0004-updated-for-entries-in-pom.xml.patch

S. Sharma, 02/05/2014 07:33 PM

Download (1.66 KB)

View differences:

install-binary.rst
248 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 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 250

  
251
#. The following changes need to be done in :file:`pom.xml` file which then looks like this:
252

  
253
   .. 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
     
251 269
#. To compile the code with dependency use :
252 270

  
253 271
   .. code-block:: sh
......
258 276

  
259 277
   .. code-block:: sh
260 278

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

  
264 282
 .. _install-binary-download:
265
-