jira-importer commented on issue #872: URL: https://github.com/apache/maven-javadoc-plugin/issues/872#issuecomment-2957358678
**[Bill Shannon](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bshannon)** commented Here's a patch that fixes this problem. `--- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java` `+++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java` `@@ -3605,11 +3605,42 @@ public abstract class AbstractJavadocMojo` ` ` ` if ( StringUtils.isNotEmpty( activeProxy.getUsername() ) )` ` {` `- cmd.createArg().setValue( "-J-Dhttp.proxyUser=\"" + activeProxy.getUsername() + "\"" );` `+ cmd.createArg().setValue( "-J-D" + protocol + "proxyUser=\"" + activeProxy.getUsername() + "\"" );` ` ` ` if ( StringUtils.isNotEmpty( activeProxy.getPassword() ) )` ` {` `- cmd.createArg().setValue( "-J-Dhttp.proxyPassword=\"" + activeProxy.getPassword() + "\"" );` `+ cmd.createArg().setValue(` `+ "-J-D" + protocol + "proxyPassword=\"" + activeProxy.getPassword() + "\"" );` `+ `} `+ `} `+` `+ if ( protocol.equalsIgnoreCase( "http." ) )` `+ {` `+ // use the same proxy for the https protocol as well` `+ protocol = "https.";` `+ cmd.createArg().setValue( "-J-D" + protocol + "proxySet=true" );` `+ cmd.createArg().setValue( "-J-D" + protocol + "proxyHost=" + activeProxy.getHost() );` `+` `+ if ( activeProxy.getPort() > 0 )` `+ {` `+ cmd.createArg().setValue( "-J-D" + protocol + "proxyPort=" + activeProxy.getPort() );` `+ `} `+` `+ if ( StringUtils.isNotEmpty( activeProxy.getNonProxyHosts() ) )` `+ {` `+ cmd.createArg().setValue(` `+ "-J-D" + protocol + "nonProxyHosts=\"" + activeProxy.getNonProxyHosts() + "\"" );` `+ `} `+` `+ if ( StringUtils.isNotEmpty( activeProxy.getUsername() ) )` `+ {` `+ cmd.createArg().setValue( "-J-D" + protocol + "proxyUser=\"" + activeProxy.getUsername() + "\"" );` `+` `+ if ( StringUtils.isNotEmpty( activeProxy.getPassword() ) )` `+ {` `+ cmd.createArg().setValue(` `+ "-J-D" + protocol + "proxyPassword=\"" + activeProxy.getPassword() + "\"" );` `+ `} ` `} ` `} ` `} -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
