Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Maven plugin for model export automation or validation?

Avatar

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
souhaylabdouni
Level 1

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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-01-2019