コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

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 受け入れられたソリューション

Avatar

正解者
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

元の投稿で解決策を見る

1 返信

Avatar

正解者
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