Hi Alex.

You might be able to use the p2.mirror task to mirror the a.jre.javase from 
another repository?

But getting your build up and running on Tycho would be better IMHO :-)

Brian.

> On 5-Jul-2017, at 11:53 AM, Alex Karasulu <alex.karas...@nginx.com> wrote:
> 
> Hi Brian,
> 
> Thanks for the response!!!
> 
> I'm trying to figure out how to properly inject these "provides" instructions 
> into the content.xml when the update site is generated from within PDE on my 
> update-site project. I don't have a Tyco build and am using straight PDE for 
> the time being. I would hate to resort to a hack where I manually had to edit 
> and again jar up contents.jar. Do you have any advice on how non-Tyco based 
> projects can do this through Eclipse PDE?
> 
> Thanks much,
> Alex
> 
> 
> On Tue, Jul 4, 2017 at 6:38 PM, Brian de Alwis <briandeal...@gmail.com 
> <mailto:briandeal...@gmail.com>> wrote:
> Check your repository's content.xml/.jar for an `a.jre.javase` IU.  That 
> normally specifies the expectation of the installation environment.  I think 
> Tycho selects the minimum IU that satisfies the BREEs of the built artifacts. 
>  In one of my projects, all of which specify a BREE of JavaSE-1.7, my repo 
> has:
> 
>     <unit id='a.jre.javase' version='1.7.0' singleton='false'>
>       <provides size='174'>
>         <provided namespace='org.eclipse.equinox.p2.iu' name='a.jre.javase' 
> version='1.7.0'/>
>         <provided namespace='java.package' name='javax.accessibility' 
> version='0.0.0'/>
>         <provided namespace='java.package' name='javax.activation' 
> version='0.0.0'/>
>         <provided namespace='java.package' name='javax.activity' 
> version='0.0.0'/>
>         <provided namespace='java.package' name='javax.annotation' 
> version='0.0.0'/>
>         <provided namespace='java.package' name='javax.annotation.processing' 
> version='0.0.0'/>
>         <provided namespace='java.package' name='javax.crypto' 
> version='0.0.0'/>
>         […]
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='OSGi/Minimum' 
> version='1.0.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='OSGi/Minimum' 
> version='1.1.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='OSGi/Minimum' 
> version='1.2.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JRE' 
> version='1.0.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JRE' 
> version='1.1.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.0.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.1.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.2.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.3.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.4.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.5.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.6.0'/>
>         <provided namespace='osgi.ee <http://osgi.ee/>' name='JavaSE' 
> version='1.7.0'/>
>       </provides>
>       <touchpoint id='org.eclipse.equinox.p2.native' version='1.0.0'/>
>     </unit>
> 
> 
> 
>> On 29-Jun-2017, at 9:23 PM, Alex Karasulu <alex.karas...@nginx.com 
>> <mailto:alex.karas...@nginx.com>> wrote:
>> 
>> Hello,
>> 
>> I'm using p2 director to provision a feature into CDT Neon 3 Linux 64-bit 
>> without running the target application on a Mac OS X host with Oracle JDK 
>> 1.8.0_131_b11. One of the 3rd party bundles I'm using in the feature is 
>> causing the following error message due to a missing "javax.crypto" bundle 
>> dependency which should be present in JDK 1.7 and above:
>> 
>> ======================================================================
>> 
>> Cannot complete the install because one or more required items could not be 
>> found.
>> 
>>  Software being installed: Feature 1.0.0.201706201533 
>> (org.xxxxx.studio.feature.feature.group 1.0.0.201706201533)
>> 
>>  Missing requirement: Netty/Handler 4.1.11.Final (io.netty.handler 
>> 4.1.11.Final) requires 'package javax.crypto 0.0.0' but it could not be found
>> 
>>  Cannot satisfy dependency:
>> 
>>   From: Feature 1.0.0.201706201533 (org.xxxxx.studio.feature.feature.group 
>> 1.0.0.201706201533)
>> 
>>   To: io.netty.handler [4.1.11.Final]
>> 
>> Application failed, log file location: 
>> .../eclipse/configuration/1498784746909.log
>> 
>> ======================================================================
>> 
>> I'm invoking the p2 director using the following CLI command:
>> 
>> java -jar $ECLIPSE_HOME/plugins/$LAUNCHER_JAR \
>> 
>>     -application  $P2_DIRECTOR                \
>> 
>>     -repository   "file://$P2_REPOSITORY <>"     \
>> 
>>     -installIU    "org.xxxxx.studio.feature.feature.group"    \
>> 
>>     -tag          AddStudio                   \
>> 
>>     -profile      SDKProfile                  \
>> 
>>     -destination  $ECLIPSE_HOME
>> 
>> 
>> 
>> P2_REPOSITORY points to a local update site which for this feature which 
>> loads without any problem when using the "Install New Software" UI based 
>> installation mechanism. 
>> 
>> After scouring the web I found a few Tyco related posts, but they did not 
>> seem to apply or shed any light. I've not integrated Maven/Tyco to build the 
>> project yet. I think I've exhausted most of my options and wanted to check 
>> here as a last resort.
>> 
>> Any idea what I might be doing wrong? Anything I can try to remedy this 
>> problem?
>> 
>> Thanks in advance,
>> Alex
>> 
>> 
>> 
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@eclipse.org <mailto:p2-dev@eclipse.org>
>> To change your delivery options, retrieve your password, or unsubscribe from 
>> this list, visit
>> https://dev.eclipse.org/mailman/listinfo/p2-dev 
>> <https://dev.eclipse.org/mailman/listinfo/p2-dev>
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@eclipse.org <mailto:p2-dev@eclipse.org>
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/p2-dev 
> <https://dev.eclipse.org/mailman/listinfo/p2-dev>
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
p2-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to