DT-6413:list pom first, then check target folder existed or not