Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

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