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-whiteboard.git

commit aa7a2a03947a0068d30883fa77a69fa144a34890
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/skills/update-sling-parent-pom/reference/bundle-parent.md 
b/skills/update-sling-parent-pom/reference/bundle-parent.md
index 7ba84fb7..6fa05018 100644
--- a/skills/update-sling-parent-pom/reference/bundle-parent.md
+++ b/skills/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:
 
 ```

Reply via email to