Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Target Definition with P2 Update Site Repository(Crazy behaviour between target definition by Directory location and Software Site)
Target Definition with P2 Update Site Repository [message #1006159] Wed, 30 January 2013 09:36 Go to next message
Tony Reutter is currently offline Tony ReutterFriend
Messages: 2
Registered: January 2013
Junior Member
Dear all,

I encountered some strange things while importing required bundles as p2 Repository dependency into our Target Definition file.

1.) Previous state: We had a target definition defined only with "Directory"-Dependencies

2.) Then we used the "FeaturesAndBundlesPublisher" and "CategoryPublisher" to create a nice p2 Repository. So far so good.

3.) We removed all other dependencies in the existing target definition file and added only this newly created p2-Repository. This actually works BUT:

Ironically if the p2 repository contains bundles with a package dependency to "javax.xml.*" the TargetDefinitionEditor complains: e.g. com.springsource.javax.xml.stream 1.0.1 requires 'package javax.xml.transform 0.0.0' but could not be found.

The crazy thing is the package javax.xml.* is part of the java rt?!
So why can this not be resolved? Whereas the dependency by directory location we had before works fine.

Maybe some one had the same problem, would be nice to quickly response. Thank you all!

BTW: We want to prepare our build system to start building with tycho and get rid of this funny PDE Build.

index.php/fa/13152/0/
Re: Target Definition with P2 Update Site Repository [message #1006224 is a reply to message #1006159] Wed, 30 January 2013 13:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I posed the same question to PDE newsgroup this morning. The only way I
currently managed to get this working is to uncheck the "Include
Required Software" checkbox.

The package you mention and the ones I do in my post are exported by the
OSGi-system.bundle. The only reason I can think of is that they are not
part of every OSGi-EE.

Tom
Am 30.01.13 14:37, schrieb Tony Reutter:
> Dear all,
>
> I encountered some strange things while importing required bundles as p2 Repository dependency into our Target Definition file.
>
> 1.) Previous state: We had a target definition defined only with "Directory"-Dependencies
>
> 2.) Then we used the "FeaturesAndBundlesPublisher" and "CategoryPublisher" to create a nice p2 Repository. So far so good.
>
> 3.) We removed all other dependencies in the existing target definition file and added only this newly created p2-Repository. This actually works BUT:
>
> Ironically if the p2 repository contains bundles with a package dependency to "javax.xml.*" the TargetDefinitionEditor complains: e.g. com.springsource.javax.xml.stream 1.0.1 requires 'package javax.xml.transform 0.0.0' but could not be found.
>
> The crazy thing is the package javax.xml.* is part of the java rt?!
> So why can this not be resolved? Whereas the dependency by directory location we had before works fine.
>
> Maybe some one had the same problem, would be nice to quickly response. Thank you all!
>
> BTW: We want to prepare our build system to start building with tycho and get rid of this funny PDE Build.
>
>
Re: Target Definition with P2 Update Site Repository [message #1007106 is a reply to message #1006224] Mon, 04 February 2013 13:34 Go to previous messageGo to next message
Tony Reutter is currently offline Tony ReutterFriend
Messages: 2
Registered: January 2013
Junior Member
Hey Tom,

"Include Required Software" checkbox was a good advice. Thank you!
Nevertheless this is only a workaround. Can you please post the link to your thread in the PDE newsgroup.

Tony
Re: Target Definition with P2 Update Site Repository [message #1007140 is a reply to message #1007106] Mon, 04 February 2013 15:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Tony,

Well the discussion is named "Target platform based on "Software Sites"
and "Include Required Software"".

With the information I gather from it I debugged the problem and asked
at equinox-dev where Pascal gave me the answer why it does not work -
and a pointer how to fix it.

Creating a bugzilla a providing a patch is on my (never-ending)
todo-list - I'll post the bug id once I've managed to at least create
the bug report.

Tom

Am 04.02.13 14:34, schrieb Tony Reutter:
> Hey Tom,
>
> "Include Required Software" checkbox was a good advice. Thank you!
> Nevertheless this is only a workaround. Can you please post the link to
> your thread in the PDE newsgroup.
>
> Tony
Re: Target Definition with P2 Update Site Repository [message #1007162 is a reply to message #1007140] Mon, 04 February 2013 16:15 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I think the bugreport is already there:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=284465

Tom

Am 04.02.13 16:27, schrieb Tom Schindl:
> Hi Tony,
>
> Well the discussion is named "Target platform based on "Software Sites"
> and "Include Required Software"".
>
> With the information I gather from it I debugged the problem and asked
> at equinox-dev where Pascal gave me the answer why it does not work -
> and a pointer how to fix it.
>
> Creating a bugzilla a providing a patch is on my (never-ending)
> todo-list - I'll post the bug id once I've managed to at least create
> the bug report.
>
> Tom
>
> Am 04.02.13 14:34, schrieb Tony Reutter:
>> Hey Tom,
>>
>> "Include Required Software" checkbox was a good advice. Thank you!
>> Nevertheless this is only a workaround. Can you please post the link to
>> your thread in the PDE newsgroup.
>>
>> Tony
>
Previous Topic:Package Explorer sort
Next Topic:Tracking progress of MonoReconciler
Goto Forum:
  


Current Time: Tue Mar 19 11:32:27 GMT 2024

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

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

Back to the top