Added check_task function to run-maven-build