You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2014/01/11 12:53:45 UTC

[jira] (MNG-5538) mvn start script causes cygwin warning

     [ https://jira.codehaus.org/browse/MNG-5538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MNG-5538:
--------------------------------

    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:
{noformat}-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar{noformat}

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:
{noformat}
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
{noformat}

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



  was:
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.



    
> mvn start script causes cygwin warning
> --------------------------------------
>
>                 Key: MNG-5538
>                 URL: https://jira.codehaus.org/browse/MNG-5538
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.1.1
>         Environment: windows 7 64bit, cygwin 1.7.25, mvn 3.1.1
>            Reporter: Martin Vavra
>            Priority: Minor
>         Attachments: mvn.diff, mvn.fixed, mvn.orig
>
>
> 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:
> {noformat}-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar{noformat}
> 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:
> {noformat}
> 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
> {noformat}
> This can be fixed quite easily - attached please find my proposal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira