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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct Reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct Reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
SureshDhulipudi
MVP

24-01-2020

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>

        

 

 

 

models sling