Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Fetching a plugin from target platform
Fetching a plugin from target platform [message #1180977] Mon, 11 November 2013 09:34 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

I build my RCP product using the headless Buckminster. I have defined a target platform in a .target file. All plugins here was defined as local jar files relative to the .target file itself. So far so good.

Now I would like to add a p2 site to the target platform:
<location includeAllPlatforms="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.widgets.nattable.core.feature.feature.group" version="1.0.1.201311051257"/>
<unit id="org.eclipse.nebula.widgets.nattable.extension.glazedlists.feature.feature.group" version="1.0.1.201311051257"/>
<unit id="org.eclipse.nebula.widgets.nattable.extension.poi.feature.feature.group" version="1.0.1.201311051257"/>
<repository location="http://download.eclipse.org/nattable/snapshots/205/repository"/>
</location>


But the Buckminster is not able to fetch the nattable plugins now. From the log I can see that
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using resolver Local resolver
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying provider local(materialized)
No materialization found for org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1

org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying provider local(workspace)
No open workspace project found that corresponds to org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1

org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying provider local(target)
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Rejecting provider eclipse.platform(plugin/org.eclipse.nebula.widgets.nattable.core): No component match was found

org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using resource map file:/D:/HUDSON_HOME/jobs/Spl%20-%20Client%20(RCP%20product)/workspace/Spl/cz.tigra.spl.site/site.rmap
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using search path resources
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying provider local(file:///{0}/Spl/{1}/[file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/])
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Found match 
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using provider local(file:///{0}/Spl/{1}/[file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/])

org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Resolution attempt ended with exception: Provider local(file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/): Missing CSpec source required by component type osgi.bundle
org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: No provider was found that could resolve the request


ERROR   [0050] : No suitable provider for component org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1 was found in resourceMap file:/D:/HUDSON_HOME/jobs/Spl%20-%20Client%20(RCP%20product)/workspace/Spl/cz.tigra.spl.site/site.rmap
  ERROR   [0050] : No suitable provider for component org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1 was found in searchPath resources
    ERROR   [0050] : Resolution attempt ended with exception: Provider local(file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider local(file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/): Missing CSpec source required by component type osgi.bundle


My rmap file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<rmap
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
    xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
    xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
    xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">

    <searchPath name="resources">
        <provider readerType="local" componentTypes="osgi.bundle,eclipse.feature"
                  mutable="true" source="true">
            <uri format="file:///{0}/Spl/{1}/">
                <bc:propertyRef key="workspace.root" />
                <bc:propertyRef key="buckminster.component" />
            </uri>
        </provider>
    </searchPath>

    <locator searchPathRef="resources"/>
</rmap>
Re: Fetching a plugin from target platform [message #1181865 is a reply to message #1180977] Mon, 11 November 2013 22:15 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1814
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/11/2013 10:34, Jan Krakora wrote:
> Hi,
>
> I build my RCP product using the headless Buckminster. I have defined a
> target platform in a .target file. All plugins here was defined as local
> jar files relative to the .target file itself. So far so good.
>
> Now I would like to add a p2 site to the target platform:
>
> <location includeAllPlatforms="false" includeMode="slicer"
> includeSource="true" type="InstallableUnit">
> <unit
> id="org.eclipse.nebula.widgets.nattable.core.feature.feature.group"
> version="1.0.1.201311051257"/>
> <unit
> id="org.eclipse.nebula.widgets.nattable.extension.glazedlists.feature.feature.group"
> version="1.0.1.201311051257"/>
> <unit
> id="org.eclipse.nebula.widgets.nattable.extension.poi.feature.feature.group"
> version="1.0.1.201311051257"/>
> <repository
> location="http://download.eclipse.org/nattable/snapshots/205/repository"/>
> </location>
>
>
> But the Buckminster is not able to fetch the nattable plugins now. From
> the log I can see that
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using
> resolver Local resolver
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying
> provider local(materialized)
> No materialization found for
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying
> provider local(workspace)
> No open workspace project found that corresponds to
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying
> provider local(target)
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Rejecting
> provider
> eclipse.platform(plugin/org.eclipse.nebula.widgets.nattable.core): No
> component match was found
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using
> resource map
> file:/D:/HUDSON_HOME/jobs/Spl%20-%20Client%20(RCP%20product)/workspace/Spl/cz.tigra.spl.site/site.rmap
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using search
> path resources
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Trying
> provider local(file:///{0}/Spl/{1}/[file:///D:/HUDSON_HOME/jobs/Spl -
> Client (RCP
> product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/])
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Found match
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Using
> provider local(file:///{0}/Spl/{1}/[file:///D:/HUDSON_HOME/jobs/Spl -
> Client (RCP
> product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/])
>
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: Resolution
> attempt ended with exception: Provider
> local(file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP
> product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/):
> Missing CSpec source required by component type osgi.bundle
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1: No provider
> was found that could resolve the request
>
>
> ERROR [0050] : No suitable provider for component
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1 was found in
> resourceMap
> file:/D:/HUDSON_HOME/jobs/Spl%20-%20Client%20(RCP%20product)/workspace/Spl/cz.tigra.spl.site/site.rmap
>
> ERROR [0050] : No suitable provider for component
> org.eclipse.nebula.widgets.nattable.core:osgi.bundle/1.0.1 was found in
> searchPath resources
> ERROR [0050] : Resolution attempt ended with exception: Provider
> local(file:///D:/HUDSON_HOME/jobs/Spl - Client (RCP
> product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/):
> Missing CSpec source required by component type osgi.bundle
> ERROR Provider local(file:///D:/HUDSON_HOME/jobs/Spl - Client
> (RCP product)/workspace/Spl/org.eclipse.nebula.widgets.nattable.core/):
> Missing CSpec source required by component type osgi.bundle
>
>
> My rmap file looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>
> <searchPath name="resources">
> <provider readerType="local"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="true" source="true">
> <uri format="file:///{0}/Spl/{1}/">
> <bc:propertyRef key="workspace.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
> <locator searchPathRef="resources"/>
> </rmap>
>

Hi

is org.eclipse.nebula.widgets.nattable.core also stored in your
workspace? Because the resolution finds a match in your workspace...
while you'd like nebula bundles to be taken from the p2 repository
right? What happens when you issue the importtargetdefinition in your
buckminster headless build?

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Previous Topic:p2.arch=* becomes resolved to file list
Next Topic:Buckminster headless SVN not working (Juno)
Goto Forum:
  


Current Time: Sat Nov 09 03:01:45 GMT 2024

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

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

Back to the top