Issues with activating the models.
Hello Community - I have some issues with the bundles which is causing the issues with authoring the components in the project. The bundle has several sling models and servlets in it. If I install the same bundle in my local, I am able to successfully activate the bundles, activate the models and servlets without any issues. In the case of installing in higher environments, we are having issues with the bundles. Even though the bundles are active status and also all the dependencies are resolved without any issues, I see the below errors in the logs. I have even verified the model status (/system/console/status-adapters) and the model is available. AEM version (6.5) is same in my local and higher environments.Could some please help with this issue.
Caused by: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/test/components/content/testproduct/test__002d__product__002d__preview_html.java:
Line 41, column 1953 : com.abc.xyz.aem.core.models.testModel cannot be resolved to a type
I have run Maven clean install multiple times with no luck.
mvn -B archetype:generate -D archetypeGroupId=com.adobe.granite.archetypes -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=23 -D aemVersion=6.5.0 -D appTitle="Company Components" -D appId="company components" -D groupId="com.xxx.yyy.aem" -D frontendModule=none -D includeExamples=n -D includeDispatcherConfig=n
