Cleaned up some java and maven warnings.