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

distributionType=script does not overwrite files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1.1
    • None
    • Maven Wrapper Scripts
    • None

    Description

      Not sure whether this is a bug or a misunderstanding: This project https://github.com/arquillian/arquillian-extension-warp contains a rather old version of Maven Wrapper. So I tried to update it.

       

      When using this command...

      mvn wrapper:wrapper -Dtype=script

      ...I would expect it to overwrite "mvnw.cmd" and "mvnw" with newer versions, but the files are not modified. When deleting them before, it works. They are not write protected.

       

      This command...

      mvn wrapper:wrapper -Dtype=bin

      ...overwrites ".mvn/wrapper/maven-wrapper.jar" and ".mvn/wrapper/maven-wrapper.properties", as expected.

      Also, I wonder how the old project managed to combine the distribution types "bin", "source" and "script" in one package. I assume it is not possible to combine all three types?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wknauf Wolfgang Knauf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: