You can put the path as content structure into your bundle. For example, if
you use <Sling-Initial-Content>SLING-INF/content</Sling-Initial-Content>,
and you want something under /some/generic/path/myapp, you create
src/main/resources/SLING-INF/content/some/generic/path (typically as
nt:folder) and put your myapp stuff below that. It works well if other
bundles "create" the same base path as well, eg.
/some/generic/path/anotherapp.

IMHO all paths in the JCR should follow a clear convention and not rely on
other bundles or whatever.

Regards,
Alex

Reply via email to