Using Custom Widgets in Site Publications
In order to use the example Hello World custom
widget in a site publication, add the following dependency to your
site project's pom.xml
file:
<dependency> <groupId>custom.widget</groupId> <artifactId>widget-hello-world</artifactId> <version>$version</version> <type>war</type> <classifier>site</classifier> </dependency>
The highlighted site
classifier ensures that only
the required presentation components of the widget are included in the
project.