Fix caveats in Maven formulas

The formulas for `maven2` and `maven30` didn't display their caveats on installation. I have fixed a typo in the method names and verified that `brew info` correctly displays the caveats.