|
|
Re: Howto use simple pool of bundle jars [message #696383 is a reply to message #693302] |
Wed, 13 July 2011 20:27 |
|
Buckminster works best when it can use p2 repositories as input, second best with Maven repositories. Are the bundles in
question available on an update site somewhere or at maven central?
If not, then perhaps you should create a p2 repository of your own. It should be fairly simple.
1. Create a PDE target platform.
2. Appoint it to the folder where you have the bundles. It should be able to automatically find them and add them to
your target platform.
3. Add a feature project where you include the bundles.
4. Execute the site.p2 action in Buckminster. Now you have a p2 repository.
- thomas
On 2011-07-06 10:32, Dirk Alexander Schaefer wrote:
> hi there,
>
> i'm realy new to the whole buckminster things and currently i'm fighting with the problem described below.
>
> i'm working on an eclipse rcp application. this application uses several osgi bundles i either downloaded from third
> party sites, e.g. springsource or which where repacked by my own, e.g. hibernate stuff.
>
> so far everything was fine. i had all the bundels beside the eclipse stuff in a dedicated project and the rcp target
> referenced the different folders containing bundles and features inside that project.
>
> now i'm triing to switch over to buckminster as i want the whole thing to be build through ci, e.g. hudson and i want a
> proper p2 integration, and so on. now things getting difficulty to me. i have no clue how i can tell buckminster that
> there is a folder/location containing bundle jars. i tried - beside otheres - e.g. the url provider in my rmap and it
> looked quiet well. unfortunately buckminster was searching for somthing like
> http://path.to.my/shared/bundles/bundle.name instead of
> http://path.to.my/shared/bundles/bundle.name-1.0.0.201107030912.jar.
>
> this is a bigger problem for me as the only solution i've found so far is to define other eclipse feature projects, add
> the bundle jars to them and export these features as p2 repositories which i then put onto my webserver thus i can use
> them as p2 providers in my rmap. realy complicated, isn't it?
>
> is there a way to get buckminster just download/find the bundle jars directly from a pool/folder available either
> through a webserver or even better through a vcs like svn?
>
> any help would be highly appreciated.
>
> greez,
>
> dirk
|
|
|
Re: Howto use simple pool of bundle jars [message #696551 is a reply to message #696383] |
Thu, 14 July 2011 09:27 |
Dirk Alexander Schaefer Messages: 12 Registered: July 2009 |
Junior Member |
|
|
hi,
thx for the answer. that's more or less what i've done so far. i created a 'mini'-rcp-target and three different feature projects because i want their bundles to be categorized later and exported these feature projects using eclipse export functionality. i then made this repositories available over a webServer.
on my hudson i created a job that imports these features/bundels and then creates my final p2 repository which afterwards contains all the features/plugins.
well, allthough this works, it's very uncomfortable. every time i would like to, e.g. add a new bundle i have to change the rcp-target in my eclipse, add the bundle to the feature were it should go into, export that feature as p2 repository, make it available over the webServer, run the hudsonJob to create the final p2 repository and make it available over the webServer, too. that's a lot to do in order to just add one bundle.
therefore my question if there is a simpler way of getting buckminster adding bundles. but if i got you right, what i want to achieve is not possible, is it?
|
|
|
Re: Howto use simple pool of bundle jars [message #696587 is a reply to message #696551] |
Thu, 14 July 2011 10:22 |
|
On 2011-07-14 11:27, Dirk Alexander Schaefer wrote:
> hi,
>
> thx for the answer. that's more or less what i've done so far. i created a 'mini'-rcp-target and three different feature
> projects because i want their bundles to be categorized later and exported these feature projects using eclipse export
> functionality. i then made this repositories available over a webServer.
>
> on my hudson i created a job that imports these features/bundels and then creates my final p2 repository which
> afterwards contains all the features/plugins.
>
> well, allthough this works, it's very uncomfortable. every time i would like to, e.g. add a new bundle i have to change
> the rcp-target in my eclipse, add the bundle to the feature were it should go into, export that feature as p2
> repository, make it available over the webServer, run the hudsonJob to create the final p2 repository and make it
> available over the webServer, too. that's a lot to do in order to just add one bundle.
>
> therefore my question if there is a simpler way of getting buckminster adding bundles. but if i got you right, what i
> want to achieve is not possible, is it?
It might be possible to use the 'url' reader type with a matcher to scrape web pages where the bundles are published but
such a solution would probably require a lot of maintenance and it's not something that I'd recommend.
I'm surprised you don't find the bundles in question in a maven repository somewhere. That's usually the case. Did you
check for instance:
http://repository.springsource.com/maven/bundles/release
http://repository.springsource.com/maven/bundles/external
or the Maven Central
http://repo1.maven.org/maven2/
- thomas
|
|
|
|
Powered by
FUDForum. Page generated in 0.03972 seconds