protected void readModel()

in maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java [184:195]


    protected void readModel(File pomFile) {
        if (!pomFile.isAbsolute()) {
            pomFile = new File(getBasedir(), pomFile.getPath());
        }
        try {
            setModel(new MavenXpp3Reader().read(ReaderFactory.newXmlReader(pomFile)));
        } catch (IOException e) {
            throw new RuntimeException("Failed to read POM file: " + pomFile, e);
        } catch (XmlPullParserException e) {
            throw new RuntimeException("Failed to parse POM file: " + pomFile, e);
        }
    }