Uploaded image for project: 'Apache Commons All'
  1. Apache Commons All
  2. COMMONSSITE-87

Commons Parent needs to run assembly plugin later

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 40
    • None
    • None

    Description

      The parent pom runs the assembly plugin as part of the 'release' profile.
      The plugin is bound to the package phase.

      However it does not work reliably because the assembly plugin generally needs to use resources created in the package phase, so needs to run last.

      Although the assembly plugin is defined last in the release profile, if a component pom needs to add other plugins to the package phase, these will run later.

      The work-round in the past was to run the package phase twice, e.g.

      mvn package deploy

      [The second run of the assembly plugin will have access to the files created after its first run.]

      A possible solution is to bind the assembly plugin to the verify phase.
      This has been shown to work in the NET component pom.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: