Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Maven plugin for model export automation or validation?

Avatar

Level 1

Hello,

I think that the process of declaring sling model exports via the maven maven-bundle-plugin verbose & error prone.

Same goes for package exports

<plugin>

   <groupId>org.apache.felix</groupId>

   <artifactId>maven-bundle-plugin</artifactId>

   <configuration>

   <instructions>

   <Sling-Model-Packages>

     some verbose model declaration

   </Sling-Model-Packages>

   </instructions>

   </configuration>

   </plugin>

It's vicious, because you notice a missed sling model declaration too late on runtime.

Is there a solution for automating model exports or validating the model exports (via a maven plugin)?

1 Reply