Home » Archived » Buckminster » More than one rootRequest in the cquery-file?
More than one rootRequest in the cquery-file? [message #531979] |
Thu, 06 May 2010 12:28  |
Eclipse User |
|
|
|
Hi,
I want to materialize n plugins in my workspace, which have no common topic.
They are completely independent.
Do I have to call buckminster for every request or can I request more features at once?
Didn't find any examples
Thanks for help
Greeting
markus
|
|
| | |
Re: More than one rootRequest in the cque ry-file? [message #532046 is a reply to message #532022] |
Thu, 06 May 2010 17:48   |
Eclipse User |
|
|
|
Sounds like you are primarily interested in producing your own eclipse
distribution. The best way to do this is to use the b3 aggregator
(former buckminster aggregator) to produce a p2 site containing the
things you want developers to have convenient access to. In addition,
you can define your own packaging (you could start with the j2ee
definition in epp) and build this into a p2 repository.
Next step is to produce zip files (ready to run installations) from the
two update sites. This
Can be done with the p2 director.
Alternatively you can use the epp wizard to allow users to configure a
suitable IDE install, if everyone should not use everything all of the
time.
Buckminster provides most value when you want to build from source, and
get a complete target platform, API baseline, tests etc. configured
correctly for a particular version/stream of development. Then doing
this in headless fashion on a ci-server.
- henrik
You then combine th
Markus Oley <markus.oley@t-online.de> wrote:
> Hi again,
> thanks for your fast answer, I think I should explain what I want to
> do, so perhaps it becomes clearer.
> I want to implement a feature which installs several features from
> several updatesites on a given workspace. That means.
> 1. I unpack an distribution (e.g. J2EE)
> 2. than I add several plugins from internal or external updatesites
> 3. I preconfigure some things for the convinience of the developers in
> our company. 4. Than I upload the preconfigured distribution on our
> internal downloadsite.
> For this purpose I use Buckminster. I create an rmap-file with all
> those updatesites in it an tried to create a cquery file, with which
> buckminster can materialize all the wanted features in my unpacked
> distribution. I call buckminster in this way: buckminster -L DEBUG
> -data demo/eclipse/ resolve demo.cquery
> So I didn't create a cspec file. Do I need this one?
> This is part of my example-cquery-file:
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="/home/..../rmap.xml">
> <cq:rootRequest name="haltso" componentType="eclipse.feature" />
> <cq:advisorNode namePattern="net.sf.jautodoc.feature"
> componentType="eclipse.feature" />
> <cq:advisorNode namePattern="
> features/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.j ar "
> componentType="eclipse.feature" />
> ...
> </cq:componentQuery>
>
>
>
>
>
>
--
- henrik
|
|
| |
Re: More than one rootRequest in the cque ry-file? [message #532429 is a reply to message #532425] |
Sun, 09 May 2010 18:10   |
Eclipse User |
|
|
|
Hi,
The b3 aggregator is the best tool for creating an aggregated/mirrored
repository. It gives you a lot more control over the aggregation, and it
has an editor for the aggregation definition, and it performs validation
of the result.
Buckminster is not a p2 installer - it resolves dependencies and
materialized bundles but does not run the actual installation. The
primary use case is to materialize to a target platform where bundles
are used to build against. Buckminster uses the "p2 materializer" to
produce a "p2 artifact repository in runnable form".
In order to actually install something (and not just copy it to a
location on disk) you need to run the director.
I assume that the director can use the "p2 artifact repository in
runnable form" created by the p2 materializer when installing (as an
artifact repository), but I have not tried this (Thomas, feel free to
jump in here :)).
The EPP project (which creates the standard distributions from Eclipse)
is using Buckminster to build. Basically this is done by defining
features that define what the distributions should contain, then
building these using Buckminster into a p2 repository.
Now, since everything is in a p2 repository, the final step is just to
aggregate everything into one repository (which currently is done with
an earlier version of the b3 aggregator). The final repository has
everything that is required to either produce ready to run zip files for
a specific platform (built with Buckminster), or to install the same
definitions dynamically (using the director, p2 installer, or some other
p2 agent).
So, to you question if what you are doing is the "correct way" or not,
is a bit difficult to answer - if you end up with a solution that works
well for you then I guess it can be labeled as being correct ;)
- henrik
On 5/9/10 11:25 PM, Markus Oley wrote:
> Hi Henrik,
> thank you for your answer.
> I want to provide more than one preconfigured distribution. We have many
> different use cases (modeling, web and normal j2ee developers). So I
> want to create different types of distributions. I wrote an rcp-program
> to admin them, having such things like inheritance of distributions. In
> addition to that I want to mirror the base-distributions itself, on
> which my distributions are based on, I implemented the mirrors using the
> mirror-app. Is this a correct way?
>
> I thought I can add plugins to a certain eclipse-installations with
> buckminster resolving all dependencies, don't I? With a simple example
> it worked already and if it works in principle I would like to use my
> already partially implemented solution.
> May I use the b3 aggregator as well for such a use case? What's the
> advantage of each solution?
>
> Thank you for your answer
>
> Greetings Markus
>
|
|
| | | | | |
Re: More than one rootRequest in the cque ry-file? [message #533932 is a reply to message #533258] |
Mon, 17 May 2010 10:06   |
Eclipse User |
|
|
|
Hi Johannes
I tried setting up the mirror by the following build-model:
<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmlns:aggregator="http://www.eclipse.org/buckminster/2009/aggregator" label="VSA-UpdatesiteMirror" buildRoot="${user.home}/entwicklung/sitecache3.5/">
<configurations operatingSystem="win32" windowSystem="win32" />
<configurations operatingSystem="linux" windowSystem="gtk" />
<configurations operatingSystem="linux" windowSystem="gtk" />
<configurations operatingSystem="macosx" windowSystem="cocoa" />
<contributions label="GALLILEO">
<repositories location="http://download.eclipse.org/releases/galileo">
<metadataRepository href=" p2:http://download.eclipse.org/releases/galileo#//@metadataR epository" />
</repositories>
</contributions>
<contributions label="SWTBot fuer Test">
<repositories location=" http://download.eclipse.org/technology/swtbot/galileo/dev-bu ild/update-site">
<metadataRepository href=" p2:http://download.eclipse.org/technology/swtbot/galileo/dev -build/update-site#//@metadataRepository" />
</repositories>
</contributions>
<contributions label="Subversion">
<repositories location=" http://download.eclipse.org/technology/subversive/0.7/update -site/">
<metadataRepository href=" p2:http://download.eclipse.org/technology/subversive/0.7/upd ate-site/#//@metadataRepository" />
</repositories>
</contributions>
<contributions label="Multi-Clipboard">
<repositories location="http://www.bastian-bergerhoff.com/eclipse/features">
<metadataRepository href=" p2:http://www.bastian-bergerhoff.com/eclipse/features#//@met adataRepository" />
</repositories>
</contributions>
<contributions label="AnyEdit">
<repositories location="http://andrei.gmxhome.de/eclipse">
<metadataRepository href="p2:http://andrei.gmxhome.de/eclipse#//@metadataRepository" />
</repositories>
</contributions>
<contributions label="Subversion-Connectoren">
<repositories location=" http://community.polarion.com/projects/subversive/download/e clipse/2.0/update-site/">
<metadataRepository href=" p2:http://community.polarion.com/projects/subversive/downloa d/eclipse/2.0/update-site/#//@metadataRepository" />
</repositories>
</contributions>
<contributions label="MyLyn-Jira-Extension">
<repositories location="http://download.eclipse.org/tools/mylyn/update/extras">
<metadataRepository href=" p2:http://download.eclipse.org/tools/mylyn/update/extras#//@ metadataRepository" />
</repositories>
</contributions>
<contributions label="JAutoDoc">
<repositories location="http://jautodoc.sourceforge.net/update/">
<metadataRepository href=" p2:http://jautodoc.sourceforge.net/update/#//@metadataReposi tory" />
</repositories>
</contributions>
</aggregator:Aggregator>
then I get a exception like:
[Fatal Error] :145080:2920: Premature end of file.
2010-05-17 16:02:43,743 ERROR [Thread-5] distributor.BuckminsterAdapter - ERROR: Unable to load repository http://download.eclipse.org/releases/galileo
2010-05-17 16:02:43,793 ERROR [Thread-5] distributor.BuckminsterAdapter - org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception: No repository found at http://download.eclipse.org/releases/galileo/200909241140.
2010-05-17 16:02:43,794 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.fail(AbstractRepositoryManager.java:380)
2010-05-17 16:02:43,794 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:606)
2010-05-17 16:02:43,794 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:92)
2010-05-17 16:02:43,794 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:88)
2010-05-17 16:02:43,794 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.p2.impl.MetadataRepositor yImpl.addRepositoryReferences(MetadataRepositoryImpl.java:33 3)
2010-05-17 16:02:43,795 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.p2.util.P2RepositoryLoade r.load(P2RepositoryLoader.java:176)
2010-05-17 16:02:43,795 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.p2.util.P2RepositoryLoade r.load(P2RepositoryLoader.java:78)
2010-05-17 16:02:43,795 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.p2.util.MetadataRepositor yResourceImpl$RepositoryLoaderJob.run(MetadataRepositoryReso urceImpl.java:233)
2010-05-17 16:02:43,795 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
2010-05-17 16:02:47,739 ERROR [Thread-5] distributor.BuckminsterAdapter - ERROR: The feature 'metadataRepository' of 'org.eclipse.buckminster.aggregator.impl.MappedRepositoryImp l @79b177 {file:/home/oleym/entwicklung/pluginseclipse_1/rcpdistributo r/conf/mirror3.5.build#//@contributions[label='GALLILEO']/@r epositories.0}' contains an unresolved proxy ' org.eclipse.buckminster.aggregator.p2.impl.MetadataRepositor yImpl@1723c7f{p2:http://download.eclipse.org/releases/galile o#//@metadataRepository}'
2010-05-17 16:02:47,741 ERROR [Thread-5] distributor.BuckminsterAdapter - ERROR: Build failed! Exception was org.eclipse.core.runtime.CoreException: Build model validation failed: Diagnosis of org.eclipse.buckminster.aggregator.impl.AggregatorImpl@639bf1 {file:/home/oleym/entwicklung/pluginseclipse_1/rcpdistributo r/conf/mirror3.5.build#/}
2010-05-17 16:02:47,741 ERROR [Thread-5] distributor.BuckminsterAdapter - org.eclipse.core.runtime.CoreException: Build model validation failed: Diagnosis of org.eclipse.buckminster.aggregator.impl.AggregatorImpl@639bf1 {file:/home/oleym/entwicklung/pluginseclipse_1/rcpdistributo r/conf/mirror3.5.build#/}
2010-05-17 16:02:47,742 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.runtime.BuckminsterException.fromMes sage(BuckminsterException.java:64)
2010-05-17 16:02:47,742 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.runtime.BuckminsterException.fromMes sage(BuckminsterException.java:59)
2010-05-17 16:02:47,742 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.engine.Builder.runTransfo rmation(Builder.java:1241)
2010-05-17 16:02:47,742 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.engine.Builder.run(Builde r.java:635)
2010-05-17 16:02:47,742 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.aggregator.engine.Builder.run(Builde r.java:1059)
2010-05-17 16:02:47,743 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:155)
2010-05-17 16:02:47,743 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 41)
2010-05-17 16:02:47,743 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 35)
2010-05-17 16:02:47,743 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.buckminster.cmdline.Headless.start(Headless.java :189)
2010-05-17 16:02:47,743 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
2010-05-17 16:02:47,744 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
2010-05-17 16:02:47,744 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
2010-05-17 16:02:47,744 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
2010-05-17 16:02:47,744 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
2010-05-17 16:02:47,745 ERROR [Thread-5] distributor.BuckminsterAdapter - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-05-17 16:02:47,745 ERROR [Thread-5] distributor.BuckminsterAdapter - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
2010-05-17 16:02:47,745 ERROR [Thread-5] distributor.BuckminsterAdapter - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
2010-05-17 16:02:47,745 ERROR [Thread-5] distributor.BuckminsterAdapter - at java.lang.reflect.Method.invoke(Method.java:597)
2010-05-17 16:02:47,745 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
2010-05-17 16:02:47,746 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
2010-05-17 16:02:47,746 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
2010-05-17 16:02:47,746 ERROR [Thread-5] distributor.BuckminsterAdapter - at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
What's the failure?
Greetings
Markus
|
|
| | | | | | | | | | | | | | | |
Goto Forum:
Current Time: Sat May 17 06:10:01 EDT 2025
Powered by FUDForum. Page generated in 0.07866 seconds
|