in maven-wrapper-plugin/src/main/java/org/apache/maven/plugins/wrapper/WrapperMojo.java [356:370]
private String getVersion(String defaultVersion, Class<?> clazz, String path) {
String version = defaultVersion;
if (version == null || version.trim().length() == 0 || "true".equals(version)) {
Properties props = new Properties();
try (InputStream is = clazz.getResourceAsStream("/META-INF/maven/" + path + "/pom.properties")) {
if (is != null) {
props.load(is);
version = props.getProperty("version");
}
} catch (IOException e) {
// noop
}
}
return version;
}