Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Integrating with Nexus

Has anyone successfully integrate RTC with a Nexus repository for use with a maven project? Steps are necessary to complete this task?

1 vote

Comments

Hi Michael,

did you manage to find a solution? If yes, can you elaborate?



4 answers

Permanent link
Can you clarify what you mean by integrating with Nexus?
What are you trying to do, at a higher level? Do you want to just build a Maven project using RTC Build, use the Maven SCM plugin to checkout/checkin changes, or run tools to publish information to the bulid?

For the current state of our Maven support, please see https://jazz.net/wiki/bin/view/Main/BuildFAQ#MavenSupport

0 votes


Permanent link
Can you clarify what you mean by integrating with Nexus?
What are you trying to do, at a higher level? Do you want to just build a Maven project using RTC Build, use the Maven SCM plugin to checkout/checkin changes, or run tools to publish information to the bulid?

For the current state of our Maven support, please see https://jazz.net/wiki/bin/view/Main/BuildFAQ#MavenSupport


Here is the situation: "We have some dependencies in our project on JARs that are not available in the maven central repository.
We need our own repository so that when we run maven it will be able to pull down the necessary jar files. At my last job we used Nexus for our in house repository."

0 votes


Permanent link
RTC itself doesn't provide any tools for managing Maven repositories.
You could try m2eclipse to ease working with Maven from with RTC. I know it has support for browsing/indexing Maven repositories. I'm not sure about publishing.

0 votes


Permanent link

Here is the situation: "We have some dependencies in our project on JARs that are not available in the maven central repository.
We need our own repository so that when we run maven it will be able to pull down the necessary jar files. At my last job we used Nexus for our in house repository."


I think one solution might be to use a Maven plugin called Tycho:

Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with Maven. Eclipse plugins and OSGi bundles have their own metadata for expressing dependencies, source folder locations, etc. that are normally found in a Maven POM. Tycho uses native metadata for Eclipse plugins and OSGi bundles and uses the POM to configure and drive the build. Tycho supports bundles, fragments, features, update site projects and RCP applications. Tycho also knows how to run JUnit test plugins using OSGi runtime and there is also support for sharing build results using Maven artifact repositories.

Lately I have been playing around with installing RTC + M2Eclipse + Tycho. Tycho has a maven goal that will automatically generate pom files in each of your projects in eclipse.

Example command:
mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms /
-DgroupId=org.dave.myapp /
-Dtycho.targetPlatform=${path-to-eclipse}

Once this is done you can simply run the normal maven goals such as:
mvn clean install /
-Dtycho.targetPlatform=${path-to-eclipse}

This also allows every eclipse project/plug-in to be packaged (into a .jar say) and put in your local Maven repository (.m2/repository/...) to be used by Maven elsewhere.

I suggest reading the 3 articles posted here for additional information:
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 09 '10, 12:00 p.m.

Question was seen: 7,779 times

Last updated: Sep 19 '12, 6:20 a.m.

Confirmation Cancel Confirm