It is because we use the feature "Support Enum-type parameters in mojos" of Maven 3:
The forthcoming patch fixes it.
Committed revision 1186622. Thanks Doug for reviewing it.
+1 This looks fine to me.
I'll commit this soon if there are no objections to this.
The patch also adds Maven 2 as a requirement in BUILD.txt