Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-191

Adjust enable clover profile execution phase

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None

    Description

      Background

      The enable-clover profile triggers at the verify stage which results in compilation failure if any code generation step in performed in magnolia code, because of duplicate classes being discovered by clover plugin.

      The detailed explanation of the error can be found at https://openclover.org/doc/manual/4.2.0/kb--duplicate-class-errors-jaxb-or-jaxb2-plugin.html

      As the test framework uses the grpc code generator plugin a similar issue to the jaxb2 code generator is found.

      Currently, the test framework as a workaround overrides the enable-clover profile in the parent pom, by ensuring that the clover plugin gets triggered before the code generator plugin, that is clover plugin gets triggered at process-sources phase whereas the code generator at generate-resources phase.

      This change in profile configuration should be pushed into the super parent pom of magnolia.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                rdhar Rishab Dhar
                Foundation
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoR