in src/main/java/org/apache/maven/plugin/doap/DoapUtil.java [689:710]
private static String getPluginVersion() {
Properties pomProperties = new Properties();
InputStream is = null;
try {
is = DoapUtil.class.getResourceAsStream(
"/META-INF/maven/org.apache.maven.plugins/" + "maven-doap-plugin/pom.properties");
if (is == null) {
return "<unknown>";
}
pomProperties.load(is);
is.close();
is = null;
return pomProperties.getProperty("version", "<unknown>");
} catch (IOException e) {
return "<unknown>";
} finally {
IOUtil.close(is);
}
}