NoClassDefFoundError for JsonErrorUnmarshallerV2 with AWS Java SDK

Well it turns out that

   <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk</artifactId>
        <version>1.10.40</version>
    </dependency>

does not include aws-core, I needed to include that separately, i.e.

        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk</artifactId>
            <version>1.10.40</version>
        </dependency>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-core</artifactId>
            <version>1.10.40</version>
        </dependency>