A custom AEM application is using the PageManager API.
What should a developer add to make the application compile and run correctly in AEM?
A custom AEM application is using the PageManager API.
What should a developer add to make the application compile and run correctly in AEM?
To ensure the custom AEM application using the PageManager API compiles and runs correctly in AEM, the developer should add a Maven dependency to the AEM uber-jar to the application bundle. The uber-jar contains API interfaces and classes along with the appropriate MANIFEST.MF file for package export versions, ensuring the correct package import ranges.
Isn't C the correct answer ?. Dependencies are declared at bundle level
Answer C The UberJars only contain API interfaces and classes, meaning that they only contain interfaces and classes which are exported by an OSGi bundle in AEM. They also contain a MANIFEST.MF file containing the correct package export versions for all of these exported packages, thus ensuring that projects built against the UberJar have the correct package import ranges.