Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTarget Definition with P2 Update Site Repository
https://www.eclipse.org/forums/index.php/mv/msg/452293/1006159/#msg_1006159
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.
]]>Tony Reutter2013-01-30T09:36:37-00:00Re: Target Definition with P2 Update Site Repository
https://www.eclipse.org/forums/index.php/mv/msg/452293/1006224/#msg_1006224
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.
>
>]]>Thomas Schindl2013-01-30T13:55:10-00:00Re: Target Definition with P2 Update Site Repository
https://www.eclipse.org/forums/index.php/mv/msg/452293/1007106/#msg_1007106
"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]]>Tony Reutter2013-02-04T13:34:06-00:00Re: Target Definition with P2 Update Site Repository
https://www.eclipse.org/forums/index.php/mv/msg/452293/1007140/#msg_1007140
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]]>Thomas Schindl2013-02-04T15:27:02-00:00Re: Target Definition with P2 Update Site Repository
https://www.eclipse.org/forums/index.php/mv/msg/452293/1007162/#msg_1007162
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
>]]>Thomas Schindl2013-02-04T16:15:08-00:00