Uploaded image for project: 'Build'
  1. Build
  2. BUILD-179

Enforce setting versions on plugins

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: POMs 30
    • Component/s: None
    • Labels:
      None

      Description

      It is good practice to specify Maven plugins version explicitly. Since Maven 3, warnings are output when versions aren't specified. With BUILD-165, we've added a bunch a version, and since BUILD-169, we can enforce they're specified. Let's do this by adding the <requirePluginVersions> rule.

      Worth noting for anyone stumbling upon this, or trying to test it:

      • The enforcer plugin is bound to the validate phase of the default lifecycle.
      • The clean lifecycle does not execute the validate phase
      • Which means that mvn clean will not show up enforcer problems

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                gjoseph Magnolia International
                Reporter:
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Checklists

                    Task DoR