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 16:28 |
|
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 cquery-file? [message #532022 is a reply to message #531994] |
Thu, 06 May 2010 19:14 |
|
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>
|
|
|
Re: More than one rootRequest in the cque ry-file? [message #532046 is a reply to message #532022] |
Thu, 06 May 2010 21:48 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
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 #532425 is a reply to message #532046] |
Sun, 09 May 2010 21:25 |
|
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 #532429 is a reply to message #532425] |
Sun, 09 May 2010 22:10 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
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 #532745 is a reply to message #532429] |
Tue, 11 May 2010 06:29 |
|
OK, thank you for your answer,
so I think the b3 aggregator would be the best choice for my needs.
So if I use it, I would just use the headless version, because the administrating of my distributions is done by my app.
I would create necessary documents to fill the aggregator to to the things I want to do. That's the medium-term solution I would like to implement.
But I got very far with my current solution, so to have a solution in short term I would like to try out, if it works. Because for one request I already had success.
So back to my initial question: Do I have the opportunity to request more than one thing at once or do I have to call all my requests by a seperate call?
Thank you for all your help
Greetings
Markus
|
|
|
Re: More than one rootRequest in the cque ry-file? [message #533162 is a reply to message #532429] |
Wed, 12 May 2010 13:19 |
|
Hi again,
OK, I want to implement the right way.
I tried out the aggregator, which has a really nice gui.
I think building a mirror is really well done with this,
but I can't imagine how to use it for creating my distributions.
I have a certain base-distribution, e.g. Gallileo J2EE and want to create a zip-file-distribution with some additional plugins, let's say Checkstyle.
What's the way I have to act to get a complete distribution from my mirrored sites?
Thanks in advance
Markus
|
|
| | | |
Re: More than one rootRequest in the cque ry-file? [message #533932 is a reply to message #533258] |
Mon, 17 May 2010 14:06 |
|
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
|
|
| | | |
Re: More than one rootRequest in the cque ry-file? [message #534309 is a reply to message #534275] |
Tue, 18 May 2010 15:20 |
|
Please note that there has been a major problem with the mirrorsURL in the last (m7a) Helios release repository. Since
this repository is included in the release composite, it's highly likely that you were hit by this. The error was
corrected just a few hours ago. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313050
Regards,
Thomas Hallgren
On 05/18/2010 04:45 PM, Markus Oley wrote:
> I think this is not the problem, because the problems exists on a
> galileo-updatesite and a helios-updatesite.
> Perhaps it's a proxy or timeout-problem. How can I set both using the
> aggregator?
>
> Greetings
> Markus
|
|
| | | |
Re: More than one rootRequest in the cque ry-file? [message #534721 is a reply to message #534450] |
Thu, 20 May 2010 06:49 |
|
Ok, you are right, eclipse can handle this url...
what could be the problem?
I first tried the p2-mirrorapp to mirror the side and had the problem that I ran in an timeout. So I increased the timeout to read this side with this,
but not knowing how to increase the timeout in the aggregator
Greetings
Markus
|
|
|
Re: More than one rootRequest in the cque ry-file? [message #535157 is a reply to message #534450] |
Fri, 21 May 2010 12:54 |
|
Hi Henrik,
I try to start from beginning.....
I downloaded helios M7,
downloaded aggregator and buckminster,
and tried to mirror the example
http://dev.eclipse.org/svnroot/tools/org.eclipse.buckminster /trunk/org.eclipse.buckminster.aggregator/samples/buckminste r_galileo_mirrored.build
in the aggregator editor.
Now I'm not behind a proxy, because I'm not at work, and it can't complte building the side:
Cannot complete the install because one or more required items could not be found.
Software being installed: all.contributed.content.feature.group 1.0.0
Missing requirement: Buckminster Subclipse Support Plug-in 1.0.0.r11436 (org.eclipse.buckminster.subclipse 1.0.0.r11436) requires 'bundle org.tigris.subversion.subclipse.core 1.4.8' but it could not be found
Cannot satisfy dependency:
From: all.contributed.content.feature.group 1.0.0
To: org.eclipse.buckminster.subclipse.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: Buckminster - Subclipse support 1.1.0.r11440 (org.eclipse.buckminster.subclipse.feature.feature.group 1.1.0.r11440)
To: org.eclipse.buckminster.subclipse [1.0.0,1.1.0)
What's the problem?
Greetings
Markus
|
|
| | | |
Re: More than one rootRequest in the cque ry-file? [message #535647 is a reply to message #535373] |
Tue, 25 May 2010 06:42 |
|
Hi Henrik,
sorry, but even this example doesn't work for me.
It seems that the updatesites thereself are not consistent ?
Or do I have to configure some redirects or really perhaps some timeouts?
This messages appears with the example:
Cannot complete the install because of a conflicting dependency.
Software being installed: all.contributed.content.feature.group 1.0.0
Only one of the following can be installed at once:
GMF Geometric Shapes 1.2.0.v20100511-1355 (org.eclipse.gmf.examples.runtime.diagram.geoshapes 1.2.0.v20100511-1355)
GMF Geometric Shapes 1.2.0.v20090403-1720 (org.eclipse.gmf.examples.runtime.diagram.geoshapes 1.2.0.v20090403-1720)
Cannot satisfy dependency:
From: all.contributed.content.feature.group 1.0.0
To: org.eclipse.gmf.examples.feature.group 0.0.0
Cannot satisfy dependency:
From: all.contributed.content.feature.group 1.0.0
To: org.eclipse.gmf.examples.runtime.feature.group 0.0.0
Cannot satisfy dependency:
From: Graphical Modeling Framework Examples 1.4.0.v20100428-2359-7B7H8_F8NcJLZJvMm9THaJ (org.eclipse.gmf.examples.feature.group 1.4.0.v20100428-2359-7B7H8_F8NcJLZJvMm9THaJ)
To: org.eclipse.gmf.examples.runtime.diagram.geoshapes [1.2.0.v20090403-1720]
Cannot satisfy dependency:
From: Graphical Modeling Framework Runtime Examples 1.4.0.v20100511-1355-7B7L0F8NcJP-JxPc9U1oc (org.eclipse.gmf.examples.runtime.feature.group 1.4.0.v20100511-1355-7B7L0F8NcJP-JxPc9U1oc)
To: org.eclipse.gmf.examples.runtime.diagram.geoshapes [1.2.0.v20100511-1355]
|
|
| | |
Goto Forum:
Current Time: Wed Sep 25 23:45:42 GMT 2024
Powered by FUDForum. Page generated in 0.07061 seconds
|