public Model readModel( File file, boolean resolveTransitiveDependencies )
throws ParserConfigurationException, SAXException, IOException
{
ModelReader reader = new ModelReader( resolver, resolveTransitiveDependencies );
Model model = reader.parseModel( file, Collections.EMPTY_LIST );
resolver.addBuiltArtifact( model.getGroupId(), model.getArtifactId(), "pom", file );
String id = model.getGroupId() + ":" + model.getArtifactId();
modelFileCache.put( id, file );