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