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

Enforce setting versions on plugins

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • POMs 30
    • None
    • None
    • None

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoR