Show all warnings in Maven. Fix some warnings.

* Add `serialVersionUID` to the exception classes.