This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-agent-skills.git
commit 263eee26d9183f2d6fb3976141b5d7a0f7832bfe Author: Robert Munteanu <[email protected]> AuthorDate: Mon Apr 20 15:23:50 2026 +0200 skills: improved instructions for converting to bnd.bnd --- update-sling-parent-pom/reference/bundle-parent.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/update-sling-parent-pom/reference/bundle-parent.md b/update-sling-parent-pom/reference/bundle-parent.md index 7ba84fb..6fa0501 100644 --- a/update-sling-parent-pom/reference/bundle-parent.md +++ b/update-sling-parent-pom/reference/bundle-parent.md @@ -43,6 +43,22 @@ Provide-Capability:\ osgi.service;objectClass=org.apache.sling.models.factory.ModelFactory ``` +Not all instructions can be copied as they are. The folowing exceptions apply: + +1. `Embed-Dependency` instructions should be converted to `-includeresource` instructions. Example: + +```xml +<Embed-Dependency> + org.apache.felix.utils;inline=org/apache/felix/utils/json/JSONWriter.class +</Embed-Dependency> +``` + +This should be converted to the following in the bnd.bnd file: + +``` +includeresource: @org.apache.felix.utils-*.jar!/org/apache/felix/utils/json/JSONWriter.class +``` + If the build fails with a baselining error then add a pom property named `bnd.baseline.skip` with value `true`. This happens for projects that have not yet been released. Example below: ```
