Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Adding a cspex file causes import to fail(no action, group, or local artifact named site.p2 error when using a cspex)
Adding a cspex file causes import to fail [message #644382] Fri, 10 December 2010 18:45 Go to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
I have a working Buckminster build system running through Hudson that is correctly creating a p2 repository for my feature. I would now like to have Buckminster create my product for me.

I followed these two tutorials:
http://swissdev.blogspot.com/search/label/Buckminster
http://www.ralfebert.de/blog/eclipsercp/rcp_builds/

which suggested adding a cspex file in order to add the actions create.product and create.product.zip.

As soon as I added this cspex file to the osgi bundle containing my product plugin information Buckminster started failing on import with the following error:

Quote:

ERROR [0002] : No suitable provider for component myproduct:osgi.bundle was found in resourceMap file:/pathToRmap/myrmap.rmap
[java] ERROR [0002] : No suitable provider for component myproduct:osgi.bundle was found in searchPath mySearchPath
[java] ERROR [0002] : Resolution attempt ended with exception: CSpec myproduct:osgi.bundle$1.0.0.qualifier has no action, group, or local artifact named site.p2
[java] ERROR CSpec myproduct:osgi.bundle$1.0.0.qualifier has no action, group, or local artifact named site.p2
[java] myproduct:osgi.bundle: Resolution attempt ended with exception: CSpec myproduct:osgi.bundle$1.0.0.qualifier has no action, group, or local artifact named site.p2



I know the cspex is causing this error because when I rename the cspex (to something like buckminster.cspex.off) then my build executes properly.

Here is the contents of the cspex file:

<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
                    xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
    <actions>
        <public name="create.product" actor="ant">
            <actorProperties>
                <property key="buildFile" value="build/product.ant" />
                <property key="targets" value="create.product" />
            </actorProperties>
            <properties>
                <property key="profile" value="Juice" />
                <property key="iu" value="com.cmcflex.juice" />
            </properties>
            <prerequisites alias="repository">
                <attribute name="site.p2" />
            </prerequisites>
            <products alias="destination" base="${buckminster.output}">
                <path path="mail.${target.ws}.${target.os}.${target.arch}/" />
            </products>
        </public>
        <public name="create.product.zip" actor="ant">
            <actorProperties>
                <property key="buildFileId" value="buckminster.pdetasks" />
                <property key="targets" value="create.zip" />
            </actorProperties>
            <prerequisites alias="action.requirements">
                <attribute name="create.product" />
            </prerequisites>
            <products alias="action.output" base="${buckminster.output}">
                <path path="mail.${target.ws}.${target.os}.${target.arch}.zip" />
            </products>
        </public>
    </actions>
</cspecExtension>
Re: Adding a cspex file causes import to fail [message #644436 is a reply to message #644382] Sat, 11 December 2010 08:36 Go to previous messageGo to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
Am 10.12.2010 19:45, schrieb Philip Borlin:
> As soon as I added this cspex file to the osgi bundle containing my
> product plugin information Buckminster started failing on import with
> the following error:
You need to add the cspex to the feature containing your update site
because only features have an site.p2 action by default (on which
create.product depends) and not the product plugin. You then call the
create.product action from the US feature. It feels a bit strange to do
it that way, but you will get used to it ;-)

Cheers,

Thorsten
Re: Adding a cspex file causes import to fail [message #644680 is a reply to message #644436] Mon, 13 December 2010 18:29 Go to previous messageGo to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
Thorsten Meinl wrote on Sat, 11 December 2010 03:36
Am 10.12.2010 19:45, schrieb Philip Borlin:
You need to add the cspex to the feature containing your update site



When I move the cspex file to my feature I am now getting told there is no buckminster.clean action.

Quote:

...
ERROR [0001] : Resolution attempt ended with exception: CSpec myfeature has no action, group, or local artifact named buckminster.clean
...



The interesting thing is that when I generate a cspec in Eclipse by right clicking on my feature project, selecting Buckminster, and then selecting View CSpec... the clean action shows up.
When I refresh my feature project from within Eclipse it shows an error in the console:
Quote:

Project refresh on com.cmcflex.juice.feature failed: CSpec com.cmcflex.juice.feature has no action, group, or local artifact named buckminster.clean



Even more interesting is the fact that with the cspex file in the bundle that contains my product (the original approach), the cspec file produced by Eclipse contains the site.p2 action and refreshing the project gives no errors.

Thanks for your help.
Re: Adding a cspex file causes import to fail [message #645208 is a reply to message #644680] Wed, 15 December 2010 22:45 Go to previous messageGo to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
I solved the problem - it ended up being a problem with one of my feature.xml files. I was referencing some bundle that did not belong in my product and once I took that bundle out of the feature it started working.
Re: Adding a cspex file causes import to fail [message #646423 is a reply to message #645208] Fri, 24 December 2010 00:03 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Philip Borlin wrote on Wed, 15 December 2010 17:45
I solved the problem - it ended up being a problem with one of my feature.xml files. I was referencing some bundle that did not belong in my product and once I took that bundle out of the feature it started working.


I just hit this issue as well. It would be good to be able to get a message about what bundles are at issue instead of this opaque failure..
Previous Topic:Editing an rmap containing a git provider corrupts the rmap XML
Next Topic:How do I specify (in the rmap) where to check out to?
Goto Forum:
  


Current Time: Fri Jan 17 22:40:40 GMT 2025

Powered by FUDForum. Page generated in 0.03400 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top