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

cxf-codegen-plugin fails multiple executions with the same wsdl

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.8
    • Fix Version/s: 3.2.0
    • Component/s: Tooling
    • Environment:

      maven build process

    • Estimated Complexity:
      Novice

      Description

      bug introduced as of v 2.7.8:
      The implementation of org.apache.cxf.maven_plugin.AbstractCodegenMoho.getDoneFile(...) ignores the 'String mojo' parameter and only uses the baseDir and wsdlUri parameters when generating the 'done' filename.

      When multiple executions are run (wsdl2js and wsdl2java) using the same wsdl, the second execution's generate()-shouldRun() code path finds the "done" generated by the first execution with a newer timestamp and thus skips setting doWork to true. If there are no dependent files configured, then generate exits with "Nothing to generate"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                deki Dennis Kieselhorst
                Reporter:
                tdilorenzo Todd DiLorenzo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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