Error: cannot find symbol only on ui.apps
Hi,
I just created my first java model (based on another that works, basically a copy) that has blocked the ability to deploy only ui.apps. If I deploy the whole project, it works just fine, otherwise it brings the cannot find symbol error with the class name I assigned. The model and impl filename appear in the web console here: Adobe Experience Manager Web Console - Sling Adapters and the impl is registered in Bundles. If I change the data-sly-use to an already existing model, it works fine as well.
To deploy I use the commands listed here. I rarely use the aem sync extension, however it works, even with this particular error.
<sly data-sly-use.header="com.xxx.core.models.PlatinumHeader"/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project aem-xxx-project.ui.apps: Compilation failure
[ERROR] /C:/../ui.apps/target/generated-sources/htl/org/apache/sling/scripting/sightly/apps/xxx/components/platinumheader/v1/platinumheader/platinumheader__002e__html.java:[41,86] cannot find symbol
[ERROR] symbol: class PlatinumHeader
[ERROR] location: package com.xxx.core.models
Thanks,