Upgarding to use latest PMD to support JDK 1.8 code base

PMD version 5.0.0 used in 3.1 version is not validating JDK 1.8 projects. Bumped PMD to 5.1.1 and changed enforcer plugin rules to do JDK check with 1.6 based on pmd pom.xml