[ 
https://issues.apache.org/jira/browse/CXF-8241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mitran updated CXF-8241:
------------------------
    Description: 
I use the maven to generate java code from WSDL 
([cxf-codegen-plugin|https://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html]).

I don't use the fork option.

My maven settings.xml is correctly configured with a proxy server (host and 
port).

During the run, the log shows:

[INFO] Using proxy server configured in maven.

Nevertheless, the proxy host is used correctly  but the port is not. I have 
debugged the execution and observed that the used port is 80 while in my 
settings.xml file, I have configured 8012.

The bug is in the method 
org.apache.cxf.maven_plugin.AbstractCodegenMoho#configureProxyServerSettings

=> System.setProperty(HTTP_PROXY_PORT, authPassword);

it should be System.setProperty(HTTP_PROXY_PASSWORD, authPassword);

 

  was:
I use the maven to generate java code from WSDL 
([cxf-codegen-plugin|https://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html]).

I don't use the fork option.

My maven settings.xml is correctly configured with a proxy server (host and 
port).

During the run, the log shows:

[INFO] Using proxy server configured in maven.

Nevertheless, the proxy host is used correctly  but the port is not. I have 
debugged the execution and observed that the used port is 80 while in my 
settings.xml file, I have configured 8012.

  


> cxf-codegen-plugin not using the proxy port configured in settings.xml
> ----------------------------------------------------------------------
>
>                 Key: CXF-8241
>                 URL: https://issues.apache.org/jira/browse/CXF-8241
>             Project: CXF
>          Issue Type: Bug
>          Components: Services
>    Affects Versions: 3.3.5
>            Reporter: Mitran
>            Priority: Blocker
>             Fix For: 3.3.6
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> I use the maven to generate java code from WSDL 
> ([cxf-codegen-plugin|https://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html]).
> I don't use the fork option.
> My maven settings.xml is correctly configured with a proxy server (host and 
> port).
> During the run, the log shows:
> [INFO] Using proxy server configured in maven.
> Nevertheless, the proxy host is used correctly  but the port is not. I have 
> debugged the execution and observed that the used port is 80 while in my 
> settings.xml file, I have configured 8012.
> The bug is in the method 
> org.apache.cxf.maven_plugin.AbstractCodegenMoho#configureProxyServerSettings
> => System.setProperty(HTTP_PROXY_PORT, authPassword);
> it should be System.setProperty(HTTP_PROXY_PASSWORD, authPassword);
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to