Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8241

cxf-codegen-plugin not using the proxy port configured in settings.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.5
    • Fix Version/s: 3.3.6, 3.2.13, 3.4.0
    • Component/s: Services
    • Labels:
      None
    • Estimated Complexity:
      Moderate
    • Flags:
      Patch, Important

      Description

      I use the maven to generate java code from WSDL (cxf-codegen-plugin).

      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);

       

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              cmitran Cristian
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified