added flag to enable/disable scm validation
added unit test and minor refactoring for getting group id and artifact id from file name