private static String getPluginVersion()

in src/main/java/org/apache/maven/plugin/doap/DoapUtil.java [684:699]


    private static String getPluginVersion() {
        Properties pomProperties = new Properties();

        try (InputStream is = DoapUtil.class.getResourceAsStream(
                "/META-INF/maven/org.apache.maven.plugins/" + "maven-doap-plugin/pom.properties")) {
            if (is == null) {
                return "<unknown>";
            }

            pomProperties.load(is);

            return pomProperties.getProperty("version", "<unknown>");
        } catch (IOException e) {
            return "<unknown>";
        }
    }