in src/main/java/org/apache/maven/plugins/changes/jira/RestJiraDownloader.java [777:800]
private Proxy getProxy(String jiraUrl) {
Proxy proxy = settings.getActiveProxy();
if (proxy != null) {
SettingsDecryptionResult result = settingsDecrypter.decrypt(new DefaultSettingsDecryptionRequest(proxy));
if (!result.getProblems().isEmpty()) {
for (SettingsProblem problem : result.getProblems()) {
log.error(problem.getMessage());
}
} else {
proxy = result.getProxy();
}
}
if (proxy != null && proxy.getNonProxyHosts() != null) {
URI jiraUri = URI.create(jiraUrl);
boolean nonProxy = Arrays.stream(proxy.getNonProxyHosts().split("\\|"))
.anyMatch(host -> !host.equalsIgnoreCase(jiraUri.getHost()));
if (nonProxy) {
return null;
}
}
return proxy;
}