tycho icon indicating copy to clipboard operation
tycho copied to clipboard

The p2 metadata of BND-wrapped source bundles is inconsistent with respect to the BND-wrapped main bundle

Open merks opened this issue 2 years ago • 0 comments

A "main" artifact is wrapped as a bundle like this with maven-wrapped-* properties:

<unit id='com.jcraft.jsch' version='0.1.55.v20230916-1400' singleton='false' generation='2'>
  <update id='com.jcraft.jsch' range='[0.0.0,0.1.55.v20230916-1400)' severity='0'/>
  <properties size='4'>
    <property name='org.eclipse.equinox.p2.name' value='Bundle com.jcraft : jsch'/>
    <property name='maven-wrapped-groupId' value='com.jcraft'/>
    <property name='maven-wrapped-artifactId' value='jsch'/>
    <property name='maven-wrapped-version' value='0.1.55'/>
  </properties>

but the corresponding source artifact is wrapped as a bundle like this with all the maven-* properties of the original source artifact:

<unit id='com.jcraft.jsch.source' version='0.1.55.v20230916-1400' singleton='false'>
  <update id='com.jcraft.jsch.source' range='[0.0.0,0.1.55.v20230916-1400)' severity='0'/>
  <properties size='7'>
    <property name='org.eclipse.equinox.p2.name' value='Source Bundle for com.jcraft.jsch:0.1.55.v20230916-1400'/>
    <property name='maven-groupId' value='com.jcraft'/>
    <property name='maven-artifactId' value='jsch'/>
    <property name='maven-version' value='0.1.55'/>
    <property name='maven-classifier' value='sources'/>
    <property name='maven-repository' value='central'/>
    <property name='maven-type' value='jar'/>
  </properties>

That seems inconsistent and makes it more difficult to determine that it's a wrapped bundle rather than just the original bundle direct from Maven.

merks avatar Dec 16 '23 08:12 merks