Upgrade compiler plugin to 3.1 to take care of netty issue.