in src/main/java/org/apache/maven/plugins/deploy/AbstractDeployMojo.java [79:96]
protected void warnIfAffectedPackagingAndMaven(final String packaging) {
if (AFFECTED_MAVEN_PACKAGING.equals(packaging)) {
try {
GenericVersionScheme versionScheme = new GenericVersionScheme();
Version fixedMavenVersion = versionScheme.parseVersion(FIXED_MAVEN_VERSION);
Version currentMavenVersion = versionScheme.parseVersion(runtimeInformation.getMavenVersion());
if (fixedMavenVersion.compareTo(currentMavenVersion) > 0) {
getLog().warn("");
getLog().warn("You are about to deploy a maven-plugin using Maven " + currentMavenVersion + ".");
getLog().warn("This plugin should be used ONLY with Maven 3.9.0 and newer, as MNG-7055");
getLog().warn("is fixed in those versions of Maven only!");
getLog().warn("");
}
} catch (InvalidVersionSpecificationException e) {
// skip it: Generic does not throw, only API contains this exception
}
}
}