Enhancement #1732

Document how to use maven from the citec repository server in client projects

Added by J. Wienke over 7 years ago. Updated over 7 years ago.

Status:ResolvedStart date:02/05/2014
Priority:NormalDue date:
Assignee:S. Sharma% Done:

100%

Category:Documentation
Target version:rsb-0.11

Description

In order to use RSB inside a client application that is developed with maven, you can use the deployed packages from the citec repository server. This usage pattern should be documented.

https://repo.cit-ec.uni-bielefeld.de/index.html#welcome

0003-added-steps-for-installation-with-maven.patch Magnifier (1.53 KB) S. Sharma, 02/05/2014 06:40 PM

0004-updated-for-entries-in-pom.xml.patch Magnifier (1.66 KB) S. Sharma, 02/05/2014 07:33 PM

0005-download-jars-using-repository-tag.patch Magnifier (23.4 KB) S. Sharma, 02/13/2014 04:23 PM


Related issues

Related to Robotics Service Bus - Bug #1168: Improve Binary Installation Documentation for RSB Rejected 09/18/2012

Associated revisions

Revision 7e0142d5
Added by J. Wienke over 7 years ago

fixes #1732: document maven repo usage

Document how to use the RSB versions deployed to the CITEC maven
repository in client projects

Includes patches proposed by Suchit Sharma.

Revision f25fd229
Added by J. Wienke over 7 years ago

Fix CITEC repository URLs

refs #1732

History

#1 Updated by S. Sharma over 7 years ago

Updated the document and attaching the patch, please review.

#2 Updated by S. Sharma over 7 years ago

Updated changes in pom.xml.Attaching another patch.

Note: since changes are in users project ,changes in pom.xml should not have any problem(as here we are not building from source)

#3 Updated by J. Wienke over 7 years ago

I think this doesn't use the repository so far. It should be possible to use RSB from the repo without manually installing jars into your local repository.

You probably needs some configuration like this somewhere:

      <repositories>
        <repository>
          <id>citec</id>
          <name>CITEC Maven Repository Server</name>
          <url>http://repo.cit-ec.uni-bielefeld.de/</url>
          <layout>default</layout>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>

#4 Updated by S. Sharma over 7 years ago

I am not able to compile it successfully with above repository tag :error rsb does not exist.
I also tried to chnage url but does not work
<name>CITEC Maven Repository Server</name>
<url>http://repo.cit-ec.uni-bielefeld.de/rsb/rsb/0.11-SNAPSHOT/rsb-0.11-20140211.002949-9.jar&lt;/url>
<layout>default</layout>
<releases>

#5 Updated by S. Sharma over 7 years ago

The compilation with this <repository> option is throwing errors.
It may be due to incorrect repository url, could you please provide me with the exact url of the repository.
Also , why do we need this <repository> tag appoach instead of the one I used earlier to install?
If we use this , does the system downloads jar from repository every time? if it is, it should be better to install jar on local system.

#6 Updated by J. Wienke over 7 years ago

The whole idea of maven is to automatically pull dependencies from a repository server and to prevent manual work for dependencies. That's the reason why we would like to document that method. The dependencies will usually be cached on your local computer once you compiled your client project, so downloads will not happen all the time.

The configuration fragment with the repository location is correct. I have already used that one and it originates from my .m2/settings.xml. What are the exact errors?

From your first comment:

<name>CITEC Maven Repository Server</name>
<url>http://repo.cit-ec.uni-bielefeld.de/rsb/rsb/0.11-SNAPSHOT/rsb-0.11-20140211.002949-9.jar&lt;/url>
<layout>default</layout>
<releases>

This is not the intended way to use repositories. You only configure the base URL (http://repo.cit-ec.uni-bielefeld.de/) and the remaining thing required to download a jar file are handled through the group, name and version specification of your dependencies.

As we will need to work with maven more often it would be good if you could familiarize yourself with the maven concepts by reading some of the documentation and tutorials. We will get in touch with this over and over again.

#7 Updated by S. Sharma over 7 years ago

Compilation with repository tag working now.
Please find attached ,patch for updated document.

#8 Updated by J. Wienke over 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100

Applied in changeset rsb-manual|commit:7e0142d532ccc3c0a403670ddf864198e857164c.

#9 Updated by J. Wienke over 7 years ago

I have reworded some aspects of your patch and applied it to master along with a few other improvements.

Also available in: Atom PDF