Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-134

Provide a reliable way to determine the Maven Wrapper version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • Maven Wrapper Plugin
    • None

    Description

      I use Renovate to automatically keep dependencies up-to-date and I noticed that the upgrade to Maven Wrapper 3.3.0 removed the wrapperUrl line from .mvn/wrapper/maven-wrapper.properties. I guess that is related to MWRAPPER-120.

      A couple of my colleagues implemented the support for keeping Maven Wrapper up-to-date in Renovate, and I believe Renovate currently determines the version of Maven Wrapper based on the wrapperUrl property, so I think that logic may need to be updated after this change. Without the wrapperUrl property, I think currently the only option to determine the Maven Wrapper version is parsing the mvnw / mvnw.cmd scripts themselves, but that sounds like a clunky and unreliable way.

      In a discussion on the maven-users mailinglist, the idea was posted to add a dedicated property for this (e.g. wrapperVersion), which can be read by external tools.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              breun Nils Breunese
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: