Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Juno vs. p2
Juno vs. p2 [message #892717] Fri, 29 June 2012 10:35 Go to next message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
P2 is a pain in the *ss: Consider this example: I want to deploy an
eclipse product with Juno. I created the target platform using p2.mirror
and mirrored every feature I needed. Then I start a PDE-Headless build
against the target platform and even a mirror of the Juno repository
(update site). Then p2 tells me that org.apache.lucene.core.2.9.0 cannot
be found. And voilá there is not org.apache.lucene.core.2.9.0 in the
target platform but only 2.9.1. But the target platform is containig all
plugins that were required during mirroring, I presume. It's an aporia :)

I am very frustrated with that. Any suggestions?
Re: Juno vs. p2 [message #892718 is a reply to message #892717] Fri, 29 June 2012 10:37 Go to previous messageGo to next message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
Follow up: How did the build of Juno succeed with a broken configuration?
Am 29.06.2012 12:35, schrieb Oliver Koch:
> P2 is a pain in the *ss: Consider this example: I want to deploy an
> eclipse product with Juno. I created the target platform using p2.mirror
> and mirrored every feature I needed. Then I start a PDE-Headless build
> against the target platform and even a mirror of the Juno repository
> (update site). Then p2 tells me that org.apache.lucene.core.2.9.0 cannot
> be found. And voilá there is not org.apache.lucene.core.2.9.0 in the
> target platform but only 2.9.1. But the target platform is containig all
> plugins that were required during mirroring, I presume. It's an aporia :)
>
> I am very frustrated with that. Any suggestions?
Re: Juno vs. p2 [message #892722 is a reply to message #892717] Fri, 29 June 2012 11:20 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
Like any other tool dealing with dependencies, p2 does not pull dependencies out of its a** (following the theme Smile). It follows dependencies expressed in various metadata.
So if there is something requesting 2.9.0 it is probably because there is a dependency in one of your bundle or feature.

Suggestions:
- Look at your product, features or bundle to see if it requires 2.9.0.
- Post the complete error message showing resolution error
Re: Juno vs. p2 [message #892730 is a reply to message #892722] Fri, 29 June 2012 11:37 Go to previous messageGo to next message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
This is my error:

runDirector:
<< SNIP >>
[p2.director] Missing requirement: Help System Base
3.6.100.v201206081400 (org.eclipse.help.base 3.6.100.v201206081400)
requires 'bundle org.apache.lucene.analysis 2.9.0' but it could not be found
[p2.director] Cannot satisfy dependency:
[p2.director] Cannot satisfy dependency:


Im a compiling against this repository:

list:
[p2.director]
org.eclipse.birt.feature.group=4.2.0.v20120611-C_BC7CGWoJMfAnw8Y8QVz0nD0JPl
[p2.director]
org.eclipse.birt.source.feature.group=4.2.0.v20120611-C_BC7CGWoJMfAnw8Y8QVz0nD0JPl
[p2.director] org.eclipse.emf.cdo.feature.group=4.1.0.v20120612-1514
[p2.director]
org.eclipse.emf.cdo.source.feature.group=4.1.0.v20120612-1514
[p2.director]
org.eclipse.emf.query.sdk.feature.group=1.6.0.v20120328-0001-67T-95GFz05DNIrNLOSNK_NPj507
[p2.director] org.eclipse.emf.sdk.feature.group=2.8.0.v20120608-0554
[p2.director] org.eclipse.emf.source.feature.group=2.8.0.v20120608-0554
[p2.director]
org.eclipse.help.feature.group=1.4.0.v20120608-133537-8P7vFOTFK_Qj4JmDIQXL8Tn
[p2.director] org.eclipse.ocl.all.sdk.feature.group=4.0.0.v20120613-0850
[p2.director]
org.eclipse.rcp.feature.group=4.2.0.v20120528-1648-7IAPA7BrHQicRpNdOz-Obz-rlRCA
[p2.director]
org.eclipse.rcp.source.feature.group=4.2.0.v20120528-1648-7IAPA7BrHQicRpNdOz-Obz-rlRCA
[p2.director] Operation completed in 32 ms.

I created the repository using this script:

<target name="createTargetPlatform">
<p2.mirror source="file:/C:/Users/kochol/Desktop/Juno-Mirror"
destination="file:/C:/Users/kochol/Desktop/Target-Juno">
<iu id="org.eclipse.rcp.feature.group" />
<iu id="org.eclipse.rcp.source.feature.group" />
<iu id="org.eclipse.emf.sdk.feature.group" />
<iu id="org.eclipse.emf.source.feature.group" />
<iu id="org.eclipse.birt.feature.group" />
<iu id="org.eclipse.birt.source.feature.group" />
<iu id="org.eclipse.ocl.all.sdk.feature.group" />
<iu id="org.eclipse.emf.cdo.feature.group" />
<iu id="org.eclipse.emf.cdo.source.feature.group" />
<iu id="org.eclipse.help.feature.group" />
<iu id="org.eclipse.help.source.feature.group" />
<iu id="org.eclipse.emf.query.sdk.feature.group" />
</p2.mirror>
</target>

So do I have a Catch 22 (error)?


Am 29.06.2012 13:20, schrieb Pascal Rapicault:
> Like any other tool dealing with dependencies, p2 does not pull
> dependencies out of its a** (following the theme :)). It follows
> dependencies expressed in various metadata. So if there is something
> requesting 2.9.0 it is probably because there is a dependency in one of
> your bundle or feature.
>
> Suggestions:
> - Look at your product, features or bundle to see if it requires 2.9.0.
> - Post the complete error message showing resolution error
>
Re: Juno vs. p2 [message #892750 is a reply to message #892730] Fri, 29 June 2012 13:25 Go to previous message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
So aftersome research I investigated in the build repository and saw the
3.5 bundles being fetched from the target platform and used for the build.

When I forced the version numbers into the products feature, the build
happened to complete successfully :)

That's some great p2 hassle, I think :D

Thanks for your patience...

Am 29.06.2012 13:37, schrieb Oliver Koch:
> This is my error:
>
> runDirector:
> << SNIP >>
> [p2.director] Missing requirement: Help System Base
> 3.6.100.v201206081400 (org.eclipse.help.base 3.6.100.v201206081400)
> requires 'bundle org.apache.lucene.analysis 2.9.0' but it could not be
> found
> [p2.director] Cannot satisfy dependency:
> [p2.director] Cannot satisfy dependency:
>
>
> Im a compiling against this repository:
>
> list:
> [p2.director]
> org.eclipse.birt.feature.group=4.2.0.v20120611-C_BC7CGWoJMfAnw8Y8QVz0nD0JPl
> [p2.director]
> org.eclipse.birt.source.feature.group=4.2.0.v20120611-C_BC7CGWoJMfAnw8Y8QVz0nD0JPl
>
> [p2.director] org.eclipse.emf.cdo.feature.group=4.1.0.v20120612-1514
> [p2.director]
> org.eclipse.emf.cdo.source.feature.group=4.1.0.v20120612-1514
> [p2.director]
> org.eclipse.emf.query.sdk.feature.group=1.6.0.v20120328-0001-67T-95GFz05DNIrNLOSNK_NPj507
>
> [p2.director] org.eclipse.emf.sdk.feature.group=2.8.0.v20120608-0554
> [p2.director] org.eclipse.emf.source.feature.group=2.8.0.v20120608-0554
> [p2.director]
> org.eclipse.help.feature.group=1.4.0.v20120608-133537-8P7vFOTFK_Qj4JmDIQXL8Tn
>
> [p2.director] org.eclipse.ocl.all.sdk.feature.group=4.0.0.v20120613-0850
> [p2.director]
> org.eclipse.rcp.feature.group=4.2.0.v20120528-1648-7IAPA7BrHQicRpNdOz-Obz-rlRCA
>
> [p2.director]
> org.eclipse.rcp.source.feature.group=4.2.0.v20120528-1648-7IAPA7BrHQicRpNdOz-Obz-rlRCA
>
> [p2.director] Operation completed in 32 ms.
>
> I created the repository using this script:
>
> <target name="createTargetPlatform">
> <p2.mirror source="file:/C:/Users/kochol/Desktop/Juno-Mirror"
> destination="file:/C:/Users/kochol/Desktop/Target-Juno">
> <iu id="org.eclipse.rcp.feature.group" />
> <iu id="org.eclipse.rcp.source.feature.group" />
> <iu id="org.eclipse.emf.sdk.feature.group" />
> <iu id="org.eclipse.emf.source.feature.group" />
> <iu id="org.eclipse.birt.feature.group" />
> <iu id="org.eclipse.birt.source.feature.group" />
> <iu id="org.eclipse.ocl.all.sdk.feature.group" />
> <iu id="org.eclipse.emf.cdo.feature.group" />
> <iu id="org.eclipse.emf.cdo.source.feature.group" />
> <iu id="org.eclipse.help.feature.group" />
> <iu id="org.eclipse.help.source.feature.group" />
> <iu id="org.eclipse.emf.query.sdk.feature.group" />
> </p2.mirror>
> </target>
>
> So do I have a Catch 22 (error)?
>
>
> Am 29.06.2012 13:20, schrieb Pascal Rapicault:
>> Like any other tool dealing with dependencies, p2 does not pull
>> dependencies out of its a** (following the theme :)). It follows
>> dependencies expressed in various metadata. So if there is something
>> requesting 2.9.0 it is probably because there is a dependency in one of
>> your bundle or feature.
>>
>> Suggestions:
>> - Look at your product, features or bundle to see if it requires 2.9.0.
>> - Post the complete error message showing resolution error
>>
>
>
Previous Topic:New 3.7.2 fails to download core bundles, inexplicable MD5 errors from all mirrors
Next Topic:Does p2 support OSGi 4.3 Capabilities ?
Goto Forum:
  


Current Time: Sun Dec 08 06:34:31 GMT 2024

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

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

Back to the top