public Model parse ( File file ) throws PomParseException { try ( FileInputStream fis = new FileInputStream ( file ) ) { return parse ( fis ) ; } catch ( IOException ex ) { LOGGER . debug ( "" , ex ) ; throw new PomParseException ( String . format ( "Unable to parse pom '%s'" , file . toString ( ) ) , ex ) ; } }
Parses the given xml file and returns a Model object containing only the fields dependency - check requires .