Using Custom Widgets in Legacy Publications

In order to use the example Hello World custom widget in a legacy all-in-one publication that contains both content and layout, add the following dependency to your project's pom.xml file:

<dependency>
  <groupId>custom.widget</groupId>
  <artifactId>widget-hello-world</artifactId>
  <version>$version</version>
  <type>war</type>
</dependency>

This dependency includes no classifier. Therefore, the widget-hello-world-version.war artifact that contains both the configuration and presentation components of the widget is included in the project.