[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] One single bundle not seen in a P2 update site
|
Do you get an error? or does it just fail to provision this bundle?
If you get an error, can you pots the error log?
If it just fails to provision the bundle, then this might be a problem with the target provisioning tools (PDE owns that work). I think (someone correct me if I'm wrong) you can only add features to a target (i.e. you can't provision a single bundle). If this is the case, then the bundle you want to add to your target must be listed in a feature.
How are you selecting the stuff you want to provision?
cheers,
ian
On Mon, Jan 4, 2010 at 2:47 AM, Mathieu Baudier
<mbaudier@xxxxxxxxx> wrote:
Hello,
we develop server-side OSGi based applications, using Equinox as our
runtime and third party bundles packaged by Spring Source in their
Enterprise bundle repository (+ some packaged by ourselves).
We are now trying to use P2 in order to provision our target platforms
when developing on top of our framework.
We use Eclipse RCP Galileo SR1 (v3.5.1) as our IDE and the related P2
provisioning package for Linux.
We generated a P2 repository online:
http://www.argeo.org/projects/slc/sdk-dev/
Our problem is that when we try to provision a custom target
definition with it, it fails to display (and use) one bundle:
Bundle-Name: Apache Commons Collections
Bundle-SymbolicName: com.springsource.org.apache.commons.collections
Bundle-Version: 3.2.1
As far as I could see this is the only bundle which fails to be
displayed (and subsequently added to the target platform).
What puzzles me is that:
- the bundle jar is properly transferred by the repository generator
at the location:
http://www.argeo.org/projects/slc/sdk-dev/plugins/com.springsource.org.apache.commons.collections_3.2.1.jar
- the artifacts.jar/.xml contains a reference to it:
...
<artifact classifier='osgi.bundle'
id='com.springsource.org.apache.commons.collections' version='3.2.1'>
<properties size='3'>
<property name='artifact.size' value='582765'/>
<property name='download.size' value='582765'/>
<property name='download.md5' value='410afbac5991094056dd13f94c14e902'/>
</properties>
</artifact>
...
- the contents.jar/.xml as well contains a reference as well (see below)
We generate the repository with the following command (using the maven
exec plugin which issues a regular system call):
<configuration>
<executable>${argeo.p2.cmd}</executable>
<!-- optional -->
<workingDirectory>/tmp</workingDirectory>
<arguments>
<argument>-noSplash</argument>
<argument>-application</argument>
<argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
<argument>-metadataRepository</argument>
<argument>file:${argeo.p2.repository}</argument>
<argument>-artifactRepository</argument>
<argument>file:${argeo.p2.repository}</argument>
<argument>-bundles</argument>
<argument>${project.build.directory}</argument>
<argument>-features</argument>
<argument>${project.build.directory}</argument>
<argument>-compress</argument>
<argument>-publishArtifacts</argument>
</arguments>
</configuration>
With:
${argeo.p2.cmd} : path to the eclipse executable
${argeo.p2.repository}: final location of the repository
${project.build.directory}: directory where all the bundles have been
gathered as jars
This issue should be directly reproducible by browsing the repository
http://www.argeo.org/projects/slc/sdk-dev/ when adding a target
definition (or even as a Install New Software... update site).
You will see that the Apache Commons Collections is lacking in the
list displayed.
The target definition is unusable as such since many other bundles
depend on this one. But if the same jar is added manually to the
target definition, everything works properly.
Any help would be greatly appreciated since it is blocking our rollout
of a P2 based solution for provisioning on customer sites.
Please tell me if you need more details.
Many thanks in advance!
Mathieu
PS: we downloaded the provisioning package from
http://download.eclipse.org/equinox/drops/R-3.5.1-200909170800/index.php,
and took equinox-p2-agent-3.5.1-linux.tar.gz. I'm not sure that I got
the difference with equinox.p2.installer-3.5.1-linux.gtk.x86.tar.gz,
except for the size...
PS2: contents.jar/.xml reference to the Commons Collections bundle
...
<unit id='com.springsource.org.apache.commons.collections'
version='3.2.1' singleton='false'>
<update id='com.springsource.org.apache.commons.collections'
range='[0.0.0,3.2.1)' severity='0'/>
<properties size='4'>
<property name='org.eclipse.equinox.p2.name' value='Apache
Commons Collections'/>
<property name='org.eclipse.equinox.p2.description'
value='Types that extend and augment the Java Collections
Framework.'/>
<property name='org.eclipse.equinox.p2.provider' value='SpringSource'/>
<property name='org.eclipse.equinox.p2.doc.url'
value='http://commons.apache.org/collections/'/>
</properties>
<provides size='15'>
<provided namespace='org.eclipse.equinox.p2.iu'
name='com.springsource.org.apache.commons.collections'
version='3.2.1'/>
<provided namespace='osgi.bundle'
name='com.springsource.org.apache.commons.collections'
version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.bag' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.bidimap' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.buffer' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.collection' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.comparators' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.functors' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.iterators' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.keyvalue' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.list' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.map' version='3.2.1'/>
<provided namespace='java.package'
name='org.apache.commons.collections.set' version='3.2.1'/>
<provided namespace='org.eclipse.equinox.p2.eclipse.type'
name='bundle' version='1.0.0'/>
</provides>
<artifacts size='1'>
<artifact classifier='osgi.bundle'
id='com.springsource.org.apache.commons.collections' version='3.2.1'/>
</artifacts>
<touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
<touchpointData size='1'>
<instructions size='1'>
<instruction key='manifest'>
Bundle-ManifestVersion: 2
Specification-Version:
3.2.1
Implementation-Title: Commons
Collections
Export-Package:
org.apache.commons.collections;version="3.2.1",org.apache.commons.collections.bag;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.bidimap;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.buffer;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.collection;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.comparators;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.functors;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.iterators;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.keyvalue;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.list;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.map;version="3.2.1";uses:="org.apache.commons.collections",org.apache.commons.collections.set;version="3.2.1";uses:="org.apache.commons.collections,org.apache.commons.collections.collection"
Archiver-Version:
Plexus Archiver
Bundle-Name: Apache Commons
Collections
Implementation-Vendor-Id:
org.apache
X-Compile-Target-JDK: 1.2
Bundle-Vendor:
SpringSource
Bundle-Classpath: .
Bundle-Description: Types
that extend and augment the Java Collections
Framework.
X-Compile-Source-JDK: 1.2
Created-By: 1.5.0_07 (Sun
Microsystems Inc.)
Manifest-Version: 1.0
Built-By: Niall
Pemberton
Bundle-License:
http://www.apache.org/licenses/LICENSE-2.0.txt
Build-Jdk:
1.5.0_07
Bundle-DocURL:
http://commons.apache.org/collections/
Specification-Title:
Commons Collections
Bundle-Version:
3.2.1
Implementation-Version: 3.2.1
Bundle-SymbolicName:
com.springsource.org.apache.commons.collections
Implementation-Vendor:
The Apache Software Foundation
Specification-Vendor: The Apache
Software Foundation

</instruction>
</instructions>
</touchpointData>
</unit>
...
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com |
http://twitter.com/eclipsesource