in maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java [96:113]
static {
DefaultArtifactVersion version = null;
String path = "/META-INF/maven/org.apache.maven/maven-core/pom.properties";
try (InputStream is = AbstractMojoTestCase.class.getResourceAsStream(path)) {
Properties properties = new Properties();
if (is != null) {
properties.load(is);
}
String property = properties.getProperty("version");
if (property != null) {
version = new DefaultArtifactVersion(property);
}
} catch (IOException e) {
// odd, where did this come from
}
MAVEN_VERSION = version;
}