Welcome to confluence, tricky is the way to go! 
In the tutorial the xml states
<theme key="simpletheme" name="Simple Theme" class="com.atlassian.confluence.themes.BasicTheme">
<description>A simple custom theme</description>
<param name="includeClassicStyles" value="false"/>
<resource type="download" name="default-theme.css" location="/includes/css/default-theme.css">
<param name="source" value="webContext"/>
</resource>
</theme>
I had the same problem with you and solved it by creating a completely empty class that extends the BasicTheme, nothing else, no constructor.
Way b) (not tested) would be to add the com.atlassian.confluence.themes package in the import of the pom.xml file within the maven-confluence-plugin tag.