in src/main/java/org/apache/maven/shared/jar/classes/JarVersionedRuntimes.java [94:109]
public JarVersionedRuntime getBestFitJarVersionedRuntimeBySystemProperty(String key) {
Objects.requireNonNull(key, "key cannot null");
String property = System.getProperty(key);
if (property == null) {
throw new IllegalStateException("The value of the system property '" + key + "' is null");
}
try {
Integer release = Integer.parseInt(property);
return getBestFitJarVersionedRuntime(release);
} catch (NumberFormatException e) {
throw new IllegalStateException(
"The value of the system property '" + key + "' [" + property
+ "] cannot be converted to an Integer",
e);
}
}