Thanks Arun for the reply !
it doesn't tell me clearly how to get CAC editor in AEM?
please note : I don't want to install the separate packages as described in https://wcm.io/caconfig/editor/usage.html#Editor_GUI
as the external packages are always subjected to vulnerability scan.
I have already added the maven dependency but it does not enable the CAC editor to me.
<dependency> <groupId>io.wcm</groupId> <artifactId>io.wcm.caconfig.editor</artifactId> <version>1.12.0</version> </dependency>
Now the question is, does adobe give it OOTB or is that available as part of ACS commons.
Possible to help me understand on this? my goal is to get the CAC editor where author can author the configurations.
Hi Arun, I followed https://github.com/arunpatidar02/aemaacs-aemlab/pull/6/files and got the wcm.io editor but the OSGI configuration classes are not available in editor.
I had created SampleConfiguration.java with couple of properties but they are not available as configuration to add.
please note : i have added the configurationclassscannerplugin in pom
I appreciate your help @arunpatidar
I resolved my final problem and done with my POC.
we need scan the classes annotated with @configuration with below plugin and load it with required dependency. Below is the change in case someone is looking for:
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <!-- Generate bundle header containing all configuration annotation classes --> <_plugin>org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin</_plugin> </instructions> </configuration> <dependencies> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId> <version>1.0.2</version> </dependency> </dependencies> </plugin>
Thank You !