Update maven plugins

Set compiler plugin to version 3.1, it may solve travis build issue.
Remove duplicate release plugin definition.
Fix build Warnings

Add compiler plugin source versions.
Add resource encoding property.
Format pom.xml.