jenkins parsing poms stackoverflowerror

This issue is mainly with Java version or Maven version.
You can add Java version in the Manage Jenkins -> Tool configuration section as:
JDK -> JDK installations
java1

Then you can choose the required java in the job as follows:
java2

To change Maven:
1. First download maven from: https://maven.apache.org/download.cgi

2. Unzip it in a directory accessible by Jenkins suppose: /home/jenkins/apache-maven-3.2.3

3. Then add maven as

maven1
You can also add mvn to PATH and manually execute mvn clean for that project.