A simple target platform that only contains org.bouncycastle.bcprov-jdk15on such as:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="mytarget" sequenceNumber="0">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.bouncycastle.bcprov-jdk15on" version="1.52.0.v20160229-0929"/>
</location>
</locations>
</target>
Now the above is a bug in the repo or p2, don't know which, don't even know how to tell. I have filed bug 489387 against Orbit as a starting point.
So on to why it fails in Oomph but not in cdt.target? In Oomph cdt.setup simply provides a list of features + a list of repos (URLs) to get those features and their dependencies from. However cdt.target limits each of the target locations to just specific
contents.
So because cdt.target only allows a few of the bundles in Orbit Recipes the v 1.51 version is simply downloaded with no fuss.