Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5538

mvn start script causes cygwin warning

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.1.1
    • None
    • Command Line
    • None
    • windows 7 64bit, cygwin 1.7.25, mvn 3.1.1
    • Patch

    Description

      The shell script mvn in the bin directory of maven does various tricks with the variable M2_HOME but before the last line (the JAVACMD) is executed, the value of M2_HOME contains the Windows-style path to maven.

      One of the arguments to java.exe is:

      -classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar

      The resolving of the asterisk is still done by the cygwin bash,
      and since M2_HOME is windows-style at that time,
      cygwin generates the following warning:

      cygwin warning:
        MS-DOS style path detected: D:\apps\apache-maven-3.1.1/boot/
        Preferred POSIX equivalent is: /cygdrive/d/apps/apache-maven-3.1.1/boot/
        CYGWIN environment variable option "nodosfilewarning" turns off this warning.
        Consult the user's guide for more details about POSIX paths:
          http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
      

      This can be fixed quite easily - attached please find my proposal.

      Attachments

        1. mvn.diff
          0.3 kB
          Martin Vavra
        2. mvn.fixed
          6 kB
          Martin Vavra
        3. mvn.orig
          6 kB
          Martin Vavra

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            schulte77 Christian Schulte
            martin.vavra Martin Vavra
            Votes:
            1 Vote for this issue
            Watchers:
            6 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment