New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register non-standard namespaces used in Sling Initial Content via Sling-Namespaces
header
#10
Comments
This closes wcm-io#10
thanks for the contribution! changes from the PR make sense. however, i wanted to test the validation with |
I get the following warning in a container content package embedding
|
i'm still failing to see this warning - in whatever way i include caconfig editor in the all package. to reproduce i've created a git project based on adobe AEM project archetype 40: it contains two branches, one with embedding caconfig editor directly in the archetype (which is imho the recommended way), or indirectly via a container package as described in your comment. the branches use latest caconfig editor release 1.15.2, but it is also not reproducible with 1.13.0. is there something additional configured in your project? |
Hm, I see the following warning on your repository (branch
This is with
Here is the full log for the all module: mvn.log |
@kwin i see the warning when building under linux - but not on windows! although the same plugin versions and same project is used. i assume the maven version does not play a role. on windows i'm missing those lines (marked with ">"):
it seems there is an issue in aemanalyser or used dependencies that prevents them from being executed on windows - likely another slash-backslash-issue. environments used - windows:
linux VM:
|
Looks like an issue inside cp2fm. Please report at Sling. Probably related to https://issues.apache.org/jira/browse/SLING-11616 where I mentioned you :-) |
now i'm able to reproduce it locally, thx for the fix |
The Sling Initial Content given in
io.wcm.caconfig.editor/bundle/src/main/webapp/app-root/components/page/editor.json
Line 4 in b6c5e57
cq:
which leads to the following warning withcp2fm
used inaemanalyser-maven-plugin
:As
cp2fm
evaluates theSling-Namespaces
bundle header as defined by https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#node-type-and-namespace-definitions-cnd in https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/446396afa93b3f8684816b73617647637e5fe17b/src/main/java/org/apache/sling/feature/cpconverter/handlers/slinginitialcontent/JcrNamespaceRegistryProvider.java#L72, that prefix should be explicitly registered in the bundle header.The text was updated successfully, but these errors were encountered: