Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Sling Models @Self @Via(type = ResourceSuperType.class) giving error

SureshDhulipudi
Community Advisor
Community Advisor

AEM 6.4

I am following the help article

https://helpx.adobe.com/experience-manager/using/extend_jave_corecomponents.html

I am getting error at line #27 (@Self @Via(type = ResourceSuperType.class)) in PageHeadline.java

Error: The attribute type is undefined for the annotation type Via

I verified, pom.xml for dependencies and sling model api, they are

        <dependency>

    <groupId>com.adobe.aem</groupId>

    <artifactId>uber-jar</artifactId>

    <version>6.4.0</version>

    <classifier>apis</classifier>

    <scope>provided</scope>

</dependency>

<dependency>

      <groupId>org.apache.geronimo.specs</groupId>

      <artifactId>geronimo-atinject_1.0_spec</artifactId>

      <version>1.0</version>

      <scope>provided</scope>

</dependency>

        <dependency>

            <groupId>org.apache.sling</groupId>

            <artifactId>org.apache.sling.models.api</artifactId>

        </dependency>

        <dependency>

 

---

        <dependency> 

        <artifactId>core.wcm.components.core</artifactId> 

        <version>2.1.0</version> 

        <groupId>com.adobe.cq</groupId> 

        <scope>provided</scope> 

        </dependency>

        

 

 

 

0 Replies