in src/main/java/org/apache/maven/plugins/invoker/InvokerProperties.java [490:512]
public String getUserPropertiesFile(int index) {
Optional<String> userProperties = get(InvocationProperty.USER_PROPERTIES_FILE, index);
Optional<String> systemProperties = get(InvocationProperty.SYSTEM_PROPERTIES_FILE, index);
if (userProperties.isPresent() && systemProperties.isPresent()) {
throw new IllegalArgumentException("only one property '" + InvocationProperty.USER_PROPERTIES_FILE
+ "' or '" + InvocationProperty.SYSTEM_PROPERTIES_FILE + "' can be used");
}
if (userProperties.isPresent()) {
return userProperties.get();
}
if (systemProperties.isPresent()) {
logger.warn(
"property {} is deprecated - please use {}",
InvocationProperty.SYSTEM_PROPERTIES_FILE,
InvocationProperty.USER_PROPERTIES_FILE);
return systemProperties.get();
}
return defaultUserPropertiesFiles;
}