Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-995

Generated Descriptors are wrong after Eclipse Project Clean

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.4-M1
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Rational Application Developer 7.5
    • Flags:
      Patch

      Description

      I'm trying to run archiva from within RAD.
      For this I checkout the whole archiva sources from the repository and run mvn install. After running the eclipse goal (wtpversion=1.5), everything is setup fine for development with RAD/Eclipse
      I got problems regarding the merge of components-fragment.xml and the derived resource components.xml (happing in e.g. archiva-policies).
      After a project clean or a change in the generated components xml, the automatic eclipse build overwrites the merged file, which only exists in the target/classes folder. This results in error messages like: url-failures-cache bean cannot be found.
      I wonder why the descriptor goals do not run in the generate-resources phase and generate their output first to target/generated-resources, making later phases take care of the processing and packaging.
      The suggested patch:

      • changes the phases for the descriptor and merge-descriptors goals
      • outputs the merged result to generated-resources/plexus/META-INF/plexus/components.xml

        Attachments

        1. fix_phases.patch
          4 kB
          Steffen Grunwald

          Activity

            People

            • Assignee:
              james.w.dumay james.w.dumay
              Reporter:
              sgrunwald Steffen Grunwald
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: