private Model readModel()

in src/main/java/org/apache/maven/plugins/gpg/SignAndDeployFileMojo.java [408:418]


    private Model readModel(File pomFile) throws MojoExecutionException {
        try (InputStream inputStream = Files.newInputStream(pomFile.toPath())) {
            return new MavenXpp3Reader().read(inputStream);
        } catch (FileNotFoundException e) {
            throw new MojoExecutionException("POM not found " + pomFile, e);
        } catch (IOException e) {
            throw new MojoExecutionException("Error reading POM " + pomFile, e);
        } catch (XmlPullParserException e) {
            throw new MojoExecutionException("Error parsing POM " + pomFile, e);
        }
    }