bndtools / bnd

Bnd/Bndtools. Tooling to build OSGi bundles including Eclipse, Maven, and Gradle plugins.
https://bndtools.org
Other
532 stars 305 forks source link

Startlevel in output of bnd-resolver-maven-plugin does not include/incorporate startlevels from runbundles decorator #6364

Open glimmerveen opened 1 week ago

glimmerveen commented 1 week ago

I noticed in a project that any startlevel set using the -runbundles+ decorator does not show-up in the -runbundles outputted by the bnd-resolver-maven-plugin. Note that if the bndrun also includes a -runstartlevel instruction, then the output of bnd-resolver-maven-plugin will include startlevel attribute, but only with the value(s) following from the -runstartlevel instruction, and not from the -runbundles+ decoration.

When a bndrun file that uses a -runstartlevel instruction and some specific startlevels assigned using -runbundles+ decoration is generated into an executable JAR, then the resulting startlevels used within that executable JAR is the expected combination of both.

Is it to be expected that the output of the bnd-resolver-maven-plugin with respect to startlevel attributes is aligned with the effective output of the bnd-exporter-maven-plugin?

pkriens commented 6 days ago

Agree.

Can you provide a PR?