Uploaded image for project: 'Java Parent Project'
  1. Java Parent Project
  2. JPAR-118

use Maven enforcer instead of prerequisites element in parent POM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v3-10
    • Fix Version/s: 11.0.0
    • Labels:
      None

      Description

      From the MavenĀ 3.5 release notes:

      If you have are using <prerequisites>..</prerequisites> for a non maven-plugin project, you will get a WARNING which looks like this:

      [INFO] Scanning for projects...
      [WARNING] The project org.apache.maven:maven:pom:3.5.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
      This will tell you to use maven-enforcer-plugin to check the version of Maven you are expecting to build your project with, instead of using prerequisites MNG-5297, MNG-6092.

      So, according to this, we have been "doing it wrong" and should remove the prerequisites element from the parent POM in favour of use of the maven-enforcer-plugin.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian@iay.org.uk Ian Young
              Reporter:
              ian@iay.org.uk Ian Young
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 12 minutes
                  3h 12m