You can only add customized run modes to existing instance by amending the start script. After the installation, an instance cannot be changed from author to publish, or vice versa.https://helpx.adobe.com/tw/experience-manager/kb/RunModeSetUp.html
Its not working even though instructions in sling doc are followed, but i figured it out that you need to manually append this line to the bnd-process before the actual ConfigurationClassScannerPlugin in plugin bnd-maven-plugin Sling-ContextAware-Configuration-Classes: Then you generated required he...