Highlighted

Maven plugin for model export automation or validation?

Avatar

Avatar

souhaylabdouni

Avatar

souhaylabdouni

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

15-01-2019