Dropwizard views: add ViewBundle

dropwizard

Solution

The dependency `dropwizard-views` was missing in my maven pom file. Adding the dependency solved the issue.

<dependency>
        <groupId>io.dropwizard</groupId>
        <artifactId>dropwizard-views</artifactId>
        <version>${dropwizard.version}</version>
</dependency>

Problem

I am trying to follow this tutorial to create DropWizard views. However, when I try to `addBundle(new ViewBundle())`, it fails to find (or import) ViewBundle. What am I missing here?

Original source