Expand my Community achievements bar.

SOLVED

Sling Model Exporter

Avatar

Level 3

I'm trying to annotate a class with@ModelExporter(Exporter.DEFAULT_EXPORT_LOCATIONS) to mark it as an exporter. However I get an error because the ModelExporter and Exporter classes or interfaces are not recognized. How can I add the dependency that contains this class to our pom.xml file? The ModelExporter annotation is not a part of the Apache Sling Models library.

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@stiegjo 

You should use Model annotation. Refer the link on how to implement the Sling Model Exporter.

org.apache.sling.models.annotations.Model

 

Develop Sling Model Exporters in AEM | Adobe Experience Manager

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@stiegjo 

You should use Model annotation. Refer the link on how to implement the Sling Model Exporter.

org.apache.sling.models.annotations.Model

 

Develop Sling Model Exporters in AEM | Adobe Experience Manager