Expand my Community achievements bar.

SOLVED

Context Aware Configuration Editor

Avatar

Level 3

Hi,

 

has someone used context aware configuration editor?

could you please tell me how I can get that in my local AEM instance? I read that it is already available in AEM but it is not.

Any suggestions?

 

https://wcm.io/caconfig/editor/

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

It is not OOTB, it is from wcm.io

To install in AEM, please check the example POM changes https://github.com/arunpatidar02/aemaacs-aemlab/pull/6/files  



Arun Patidar

View solution in original post

9 Replies

Avatar

Level 3

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.

 

Avatar

Correct answer by
Community Advisor

Hi,

It is not OOTB, it is from wcm.io

To install in AEM, please check the example POM changes https://github.com/arunpatidar02/aemaacs-aemlab/pull/6/files  



Arun Patidar

Avatar

Level 3

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.

any suggestions. 

please note : i have added the configurationclassscannerplugin in pom

Avatar

Level 3

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 !

Avatar

Level 1

Hi ravijais , I have tried to implement CAC editor with the steps with (https://github.com/arunpatidar02/aemaacs-aemlab/pull/6/files) even I an trying to implement same thing you have implemented, need  2 difference configurations. Can you please provide the config.Java classes how to implement it.

Thanks in advance!!

 

Avatar

Level 3

Thanks Manu for the reply but it doesn't talk about the Context Aware Configuration Editor