It needs to be optional, because it uses classes which are only available if the maven-plugin is installed