Highlighted

Maven plugin for model export automation or validation?

souhaylabdouni

15-01-2019

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)?

Replies