Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Dependency in build(com.springsource...custom plugins..)
Dependency in build [message #549132] Sun, 25 July 2010 01:04 Go to next message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
hello to all.

I have next situation:

1. Plugin xx.yy have dependency on plugin yy.xx, com.springsource, riena...
2. Target platform have everything about com.springsource, riena...but I don't have yy.xx plugin (it's my plugin id develop)

When I start building with buckminster+hudson I get error that com.springsource can't be found and plugin yy.xx. Riena is founded.

on server, where is hudson, targetplatform is on .bundle_pool.

My questions is:

1. every plugin from com.springsource is not copied(refreshed) in .bundle_poll. Why? Smile
2. How to resolve problem with plugin yy.xx because plugin is not in target platfom on client and for that is not copied on server(hudson).

please if someone know have to resolve it?

thanks

Re: Dependency in build [message #549145 is a reply to message #549132] Sun, 25 July 2010 10:36 Go to previous messageGo to next message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
i changed targetPaltform to be in $workspace/targetplatform now when I build
Buckminster don't say that com.springsource and yy.xx plugins are missing.

But after importing platform I execute

perform -D target.os=* -D target.ws=* -D target.arch=* com.rinels.openbiz#site.p2
(com.rinels.openbiz is name of main application plugin) but he says:


1.

org.eclipse.equinox.launcher.win32.win32.x86_64:osgi.bundle/ [1.0.200.v20090519,1.0.200.v20090519](&(target.arch=x86_ 64)(target.os=win32)(target.ws=win32)): Found match 1.0.200.v20090519
org.eclipse.equinox.launcher.win32.win32.x86_64:osgi.bundle/ [1.0.200.v20090519,1.0.200.v20090519](&(target.arch=x86_ 64)(target.os=win32)(target.ws=win32)): Using provider eclipse.import( http://download.eclipse.org/releases/galileo?importType=bina ry)
org.eclipse.swt.gtk.linux.x86_64:osgi.bundle/[3.5.2.v3557f,3 .5.2.v3557f](&(target.arch=x86_64)(target.os=linux)(targ et.ws=gtk)): Found match 3.5.2.v3557f
org.eclipse.swt.gtk.linux.x86_64:osgi.bundle/[3.5.2.v3557f,3 .5.2.v3557f](&(target.arch=x86_64)(target.os=linux)(targ et.ws=gtk)): Using provider eclipse.import( http://download.eclipse.org/releases/galileo?importType=bina ry)
org.eclipse.core.runtime.compatibility.auth:osgi.bundle/[3.2 .100.v20090413,3.2.100.v20090413]: Found match 3.2.100.v20090413
org.eclipse.core.runtime.compatibility.auth:osgi.bundle/[3.2 .100.v20090413,3.2.100.v20090413]: Using provider eclipse.import( http://download.eclipse.org/releases/galileo?importType=bina ry)

and after all


2.

INFO: Import complete.
Doing full workspace refresh
Waiting for jobs to end
build
Doing full workspace refresh
Waiting for jobs to end
perform '-D' 'target.os=*' '-D' 'target.ws=*' '-D' 'target.arch=*' 'com.rinels.openbiz#site.p2'
No component named com.rinels.openbiz is known to Buckminster


please help Smile
Re: Dependency in build [message #549147 is a reply to message #549132] Sun, 25 July 2010 11:06 Go to previous messageGo to next message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
in my workspace on server_hudson is like this


$workspace/trunk/and then plugins from svn


perform '-D' 'target.os=*' '-D' 'target.ws=*' '-D' 'target.arch=*' 'com.rinels.openbiz#site.p2'


or


perform '-D' 'target.os=*' '-D' 'target.ws=*' '-D' 'target.arch=*' 'trunk/com.rinels.openbiz#site.p2'
Re: Dependency in build [message #549153 is a reply to message #549132] Sun, 25 July 2010 12:50 Go to previous messageGo to next message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
commands.txt

importtargetdefinition -A '${WORKSPACE}com.rinels.targetplatform/rcp.target'

import ${WORKSPACE}/com.rinels.targetplatform/org.eclipse.platform.mspec
import ${WORKSPACE}/com.rinels.targetplatfor/org.eclipse.equinox.executable.mspec
import ${WORKSPACE}/com.rinels.targetplatform/site.cquery

build

#perform com.rinels.targetplatform#create.product.zip 

perform -D target.os=* -D target.ws=* -D target.arch=* com.rinels.targetplatform#site.p2

#perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 openbiz#create.product.zip
#perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86_64 openbiz#create.product.zip
#perform -D target.os=linux -D target.ws=gtk -D target.arch=x86 openbiz#create.product.zip
#perform -D target.os=linux -D target.ws=gtk -D target.arch=x86_64 openbiz#create.product.zip
#perform -D target.os=macosx -D target.ws=cocoa -D target.arch=x86 openbiz#create.product.zip
#perform -D target.os=macosx -D target.ws=cocoa -D target.arch=x86_64 openbiz#create.product.zip



com.rinels.targetplatform/rcp.target

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>

<target name="Running Platform">
<locations>
<location path="${eclipse_home}" type="Profile"/>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.5.2.r352_v20100209-7G7MAD7lQiEeG_QL5AOoAHLYaYBg"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.rcp.sdk.id" version="3.5.2.M20100211-1343"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.riena.build.feature.core.sdk.feature.group" version="2.0.0.v20100615_2_0_0"/>
<unit id="org.eclipse.riena.build.feature.samples.sdk.feature.group" version="2.0.0.v20100615_2_0_0"/>
<unit id="org.eclipse.riena.build.feature.sdk.feature.group" version="2.0.0.v20100615_2_0_0"/>
<repository location="http://download.eclipse.org/rt/riena/2.0.0.0/update/"/>
</location>
<location path="/home/amel/work/springsource/sts-2.3.2.RELEASE/deltapack/eclipse" type="Directory"/>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="1.1.2.R35x_v20091106-7u6FbQFUAtsCKD5Fxz0qz0fb2932"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.5.1.R35x_v20090811-8q7BGE-G13DHKOBciHlrWmr7PD93"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
<location path="/home/amel/work/servers/springdm202/repository/ext" type="Directory"/>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.equinox.executable.feature.group" version="3.3.201.R35x_v20091211-7M-FngFELSU3Pqlv3JdZn"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
</locations>
</target>



org.eclipse.platform.mspec

<?xml version="1.0" encoding="UTF-8"?>

<mspec xmlns="http://www.eclipse.org/buckminster/MetaData-1.0" name="Target Platform MSPEC" materializer="p2" installLocation="${targetPlatformPath}" url="org.eclipse.platform.cquery"> 
<property key="target.arch" value="*" /> 
<property key="target.os" value="*" /> 
<property key="target.ws" value="*" />

</mspec>


org.eclipse.platform.cquery

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="rinels.rmap">
    <cq:rootRequest name="org.eclipse.platform" componentType="eclipse.feature"/>
    <cq:advisorNode namePattern=".*" useTargetPlatform="false" useWorkspace="false"/>
    <cq:property key="target.arch" value="*"/>
    <cq:property key="target.os" value="*"/>
    <cq:property key="target.ws" value="*"/> 
</cq:componentQuery>



org.eclipse.equinox.executable.mspec

<?xml version="1.0" encoding="UTF-8"?>

<mspec xmlns="http://www.eclipse.org/buckminster/MetaData-1.0" name="Target Platform MSPEC" materializer="p2" installLocation="${targetPlatformPath}" url="org.eclipse.equinox.executable.cquery"> 
<property key="target.arch" value="*" /> 
<property key="target.os" value="*" /> 
<property key="target.ws" value="*" />

</mspec>



org.eclipse.equinox.executable.cquery
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="rinels.rmap">
    <cq:rootRequest name="org.eclipse.equinox.executable" componentType="eclipse.feature"/>
    <cq:advisorNode namePattern=".*" useTargetPlatform="false" useWorkspace="false"/>
    <cq:property key="target.arch" value="*"/>
    <cq:property key="target.os" value="*"/>
    <cq:property key="target.ws" value="*"/> 
</cq:componentQuery>




rinels.rmap


<?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,buckminster"
            mutable="true" source="true">
            <uri format="file:{0}/com.rinels.targetplatform/{1}/">
                <bc:propertyRef key="workspace.root" />
                <bc:propertyRef key="buckminster.component" />
            </uri>
        </provider>
    </searchPath>
    
    <locator searchPathRef="resources" failOnError="false" />

</rmap>






site.cquery


<?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,buckminster"
            mutable="true" source="true">
            <uri format="file:{0}/com.rinels.targetplatform/{1}/">
                <bc:propertyRef key="workspace.root" />
                <bc:propertyRef key="buckminster.component" />
            </uri>
        </provider>
        
        <provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature" mutable="false" source="false">
			<uri format="http://download.eclipse.org/releases/galileo?importType=binary"/>
		</provider>
        
    </searchPath>
    
    <locator searchPathRef="resources" failOnError="false" />

</rmap>




Re: Dependency in build [message #549154 is a reply to message #549132] Sun, 25 July 2010 12:59 Go to previous messageGo to next message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
log

org.eclipse.equinox.launcher:osgi.bundle/[1.0.201.R35x_v20090715,1.0.201.R35x_v20090715]: Found match 1.0.201.R35x_v20090715 org.eclipse.equinox.launcher:osgi.bundle/[1.0.201.R35x_v20090715,1.0.201.R35x_v20090715]: Using provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary) org.eclipse.equinox.launcher.gtk.linux.x86_64:osgi.bundle/[1.0.200.v20090519,1.0.200.v20090519](&(target.arch=x86_64)(target.os=linux)(target.ws=gtk)): Found match 1.0.200.v20090519 org.eclipse.equinox.launcher.gtk.linux.x86_64:osgi.bundle/[1.0.200.v20090519,1.0.200.v20090519](&(target.arch=x86_64)(target.os=linux)(target.ws=gtk)): Using provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary) org.eclipse.equinox.launcher.cocoa.macosx.x86_64:osgi.bundle/[1.0.1.R35x_v20090707,1.0.1.R35x_v20090707](&(target.arch=x86_64)(target.os=macosx)(target.ws=cocoa)): Found match 1.0.1.R35x_v20090707 org.eclipse.equinox.launcher.cocoa.macosx.x86_64:osgi.bundle/[1.0.1.R35x_v20090707,1.0.1.R35x_v20090707](&(target.arch=x86_64)(target.os=macosx)(target.ws=cocoa)): Using provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary)
Processing changes in target platform locations... Active target handle has no containers of type DirectoryBundleContainer that matches the given locations Done processing changes in target platform locations
INFO: Import complete. Doing full workspace refresh Waiting for jobs to end import '/var/lib/hudson/jobs/openbiz/workspace//com.rinels.targetplatform/site.cquery' feature.xml:eclipse.feature: Using resolver rmap feature.xml:eclipse.feature: Using resolver Local resolver feature.xml:eclipse.feature: Trying provider local(materialized) No materialization found for feature.xml:eclipse.feature feature.xml:eclipse.feature: Trying provider local(workspace) No open workspace project found that corresponds to feature.xml:eclipse.feature feature.xml:eclipse.feature: Trying provider local(target) feature.xml:eclipse.feature: Rejecting provider eclipse.platform(feature/${buckminster.component}): No component match was found Downloading file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/rinels.rmap
feature.xml:eclipse.feature: Using resource map file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/rinels.rmap feature.xml:eclipse.feature: Using search path resources feature.xml:eclipse.feature:


 Trying provider local(file:{0}/com.rinels.targetplatform/{1}/) feature.xml:eclipse.feature: Found match feature.xml:eclipse.feature: Using provider local(file:{0}/com.rinels.targetplatform/{1}/) feature.xml:eclipse.feature: Resolution attempt ended with exception: Provider local(file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/feature.xml/): Missing CSpec source required by component type eclipse.feature feature.xml:eclipse.feature: Trying provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary)
feature.xml:eclipse.feature: Rejecting provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary): No component match was found feature.xml:eclipse.feature:


 No provider was found that could resolve the request

 ERROR [0001] : No suitable provider for component feature.xml:eclipse.feature was found in resourceMap file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/rinels.rmap 

ERROR [0001] : No suitable provider for component feature.xml:eclipse.feature was found in searchPath resources

 ERROR [0001] : Resolution attempt ended with exception: Provider local(file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/feature.xml/): Missing CSpec source required by component type eclipse.feature

 ERROR Provider local(file:/var/lib/hudson/jobs/openbiz/workspace/com.rinels.targetplatform/feature.xml/): Missing CSpec source required by component type eclipse.feature 

ERROR [0001] : Rejecting provider eclipse.import(http://download.eclipse.org/releases/galileo?importType=binary): No component match was found INFO: TAG-ID 0001 = Query for feature.xml:eclipse.feature Doing full workspace refresh Waiting for jobs to end

ERROR: No artifacts are configured for archiving. You probably forgot to set the file pattern, so please go back to the configuration and specify it. If you really did mean to archive all the files in the workspace, please specify "**" Archiving artifacts Triggering a new build of openbiz #161 Finished: FAILURE 



anyone ?

thanks
Re: Dependency in build [message #549156 is a reply to message #549132] Sun, 25 July 2010 13:38 Go to previous message
Amel Jakupovic is currently offline Amel Jakupovic
Messages: 52
Registered: March 2010
Member
in site.rmap it was feature.xml, where it must be name of feature (com.rinels.targetplatform)


now I have arrived at point where it can find org.apache.loggins ... this is now simple Smile

if you have dependency plugins that is not in target platfom, you must checkout them on serverhudson in $workspace. This is done in settings in hudson where you put SVN locations.

Previous Topic:Selective signing
Next Topic:How to deal properly with referenced plugins/features
Goto Forum:
  


Current Time: Sat Oct 25 22:50:45 GMT 2014

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

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