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

Enforce setting versions on plugins

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • POMs 30
    • None
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR