How to read a JAR from an SVN-Repository ? [message #755676] |
Wed, 09 November 2011 09:41 |
Jakob Braeuchi Messages: 69 Registered: July 2009 Location: Switzerland |
Member |
|
|
we have some components that are provided as jars (bundles) checked in to our svn-repository. when materializing i would like to have these bundles in the target platform.
i have defined the following searchpath in the rmap:
<rm:searchPath name="sl_translations">
<rm:provider componentTypes="buckminster,osgi.bundle" readerType="svn">
<rm:uri format="http://myrepo.xyz.ch/repo/sl/sl_translations/trunk/">
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
but when materializing i get the following error:
Errors and Warnings
E [0001] : No suitable provider for component ch.rtc.sl.common.events:osgi.bundle was found in resourceMap file:/D:/Eclipse_Workspaces/SoftwareLoftTEST/ch.xyz.sl.rmap/sl.rmap
E [0001] : No suitable provider for component ch.rtc.sl.common.events:osgi.bundle was found in searchPath sl_translations
E [0001] : Rejecting provider svn(http://myrepo.xyz.ch/repo/sl/sl_translations/trunk/[http://myrepo.xyz.ch/repo/sl/sl_translations/trunk/]): No component match was found
seems like buckminster does not open the jar to look for the manifest in this case.
thanks
jakob
[Updated on: Wed, 09 November 2011 09:42] Report message to a moderator
|
|
|
|
|
|
|
Re: How to read a JAR from an SVN-Repository ? [message #756218 is a reply to message #755936] |
Fri, 11 November 2011 14:27 |
Matthew Webber Messages: 198 Registered: December 2010 |
Senior Member |
|
|
Here's a rough description of how we do it.
To build the p2 site, I check out from my (subversion) repository (using Jenkins), and end up with:
(1) A project at ${workspace_loc}/thirdparty
A project containing the .jars I want to publish to my p2 site.
(2) A project at ${workspace_loc}/features/p2.site. This includes these files (plus some others):
feature.xml - a feature that consists of p2.feature
p2.site.cquery - a cquery which has advisor nodes for p2.site, p2.feature, all the plugin names. The last advisor node is ".*" and has "skip component" selected, this is so only the exact plugins I want get published to the p2 site, but not any of their dependencies.
(3) A project at ${workspace_loc}/features/p2.feature. This include these files:
feature.xml - lists all the plugins I want to publish
p2.target - a target definition that consists of the directory ${workspace_loc}/thirdparty
Now, with the appropriate bits of the repository checked out, I turn the subversion working copy into an Eclipse workspace by passing the following script to buckminster:
importtargetdefinition --active features/p2.feature/p2.target
import features/p2.site/p2.site.cquery
clean
perform -Dbuckminster.output.root=${buckminster_output_root} -Dbuckminster.temp.root=${buckminster_temp_root} -P features/p2.site/buckminster.properties p2.site#site.p2
That creates the files for the p2 site, which I then copy to my web server.
=====
Now, as a completely separate operation, a developer who needs those .jars will just materialize their product feature, which references the plugin names (not the jar names). The RMap will direct them to the p2 site, and the .jars get downloaded and materialized into the target platform.
Note the the developers never see the p2.site and p2.feature projects. They are just used by me (build engineer) to create the p2 site.
I hope that clarifies things, please let me know of you need more details.
Matthew
|
|
|
|
|
Re: How to read a JAR from an SVN-Repository ? [message #756795 is a reply to message #756624] |
Tue, 15 November 2011 07:07 |
|
On 2011-11-14 15:28, Matthew Webber wrote:
> I don't use a CQuery, and I don't think you can. I simply check out from subversion. As build engineer I'm the only
> person who needs to do this, and I do it just once; all the developers use a CQuery which points to the p2 site I create.
> Matthew
>
Most SVN's can be accessed using plain http. Perhaps that would be an option when using a CQuery?
- thomas
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04656 seconds