Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14818

Incorrect phase for camel-package-maven-plugin in upgrade guide

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.4.0
    • Component/s: documentation
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      https://camel.apache.org/manual/latest/camel-3x-upgrade-guide.html

      As documented, the generated sources for type converter loaders will be created after compiling. This means that the type converter loaders will not be available to unit tests, etc. 

      This will go unnoticed if you (or your IDE) previously compiled the source code, thus run the generator. But in a CI environment, the problem is obvious, particularly if you have unit tests that use type converters.

      You can also test with `rm -rf src/generated; mvn install`.

      The solution is to change the phase from `process-classes` to `pre-compile`. 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jimothy Jim Cushing

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                  Issue deployment