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

Concurrent execution of mvnw to download wrapper fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • Maven Wrapper Scripts
    • None

    Description

      The script will download the executable maven wrapper JAR file directly to the final file name.
      When multiple calls do this concurrently, it happens that the first call executes the JAR file that is currently overwritten by the second parallel call.

      This leads to error like:

      • NoClassDefFoundError: org/codehaus/plexus/PlexusContainer
      • ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain

      A different solution might be to first download the JAR file to a temporary file, and then use an atomic file operator like a rename once the download is complete.

      Attachments

        Issue Links

          Activity

            People

              bmarwell Benjamin Marwell
              ahus1 Alexander Schwartz
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: