X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,TW_MV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4BE81BBF.7040700@bopp.net> References: <4BE81BBF DOT 7040700 AT bopp DOT net> Date: Mon, 10 May 2010 19:59:53 +0200 Message-ID: Subject: Re: MS-DOS path warning with maven From: =?UTF-8?Q?David_Bala=C5=BEic?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 10 May 2010 16:44, Jeremy Bopp wrote: > On 5/10/2010 4:21 AM, David Bala=C5=BEic wrote: >> Hi! >> >> I have cygwin 1.7.5 (up to date as of now) on Windows XP Pro SP3 and >> maven v 2.2.1. >> >> When I start mvn from a shell (I use mintty running bash): i get a warni= ng: >> >> >> cygwin warning: >> =C2=A0 MS-DOS style path detected: F:\winsux\prg\apache-maven-2.2.1/boot/ >> =C2=A0 Preferred POSIX equivalent is: /cygdrive/f/winsux/prg/apache-mave= n-2.2.1/boot/ >> =C2=A0 CYGWIN environment variable option "nodosfilewarning" turns off t= his warning. >> =C2=A0 Consult the user's guide for more details about POSIX paths: >> =C2=A0 =C2=A0 http://cygwin.com/cygwin-ug-net/using.html#using-pathnames >> >> >> I found it strange, since maven is cygwin aware and should use cygwin pa= ths. >> >> Is this some bug? > > I'm unable to reproduce your problem when running a simple mvn -version > command. =C2=A0After looking through the mvn script included with the Mav= en > installation, I also can't see anywhere that script would directly > attempt to use a Windows-style path where a POSIX style path would be > required to avoid this warning. > > My best guess is that you are either defining the JAVACMD environment > variable to point to a Cygwin program, defining JAVA_HOME to point to a > Cygwin-based JRE/JDK, or have a Cygwin-based java.exe in your path. =C2= =A0In > all of those cases, the mvn script will attempt to feed Windows-style > paths to a Cygwin program, and that would likely trigger this warning. > If that's not the problem, it could be that whatever target you're > trying to run ultimately attempts to run some Cygwin program with a > Windows-style path. =C2=A0In all cases, Cygwin is functioning as designed. > > To diagnose the problem further, you need to first eliminate all of your > build logic as the cause. =C2=A0Running mvn -version as I did should do t= hat > for you. =C2=A0Then make sure that you're not somehow causing a Cygwin > program to be used in place of Sun's java.exe as noted above. =C2=A0If yo= u do > that and still see this warning, then you need to talk with the Maven > developers and/or the developers of whatever Maven plugins you're using. mvn -version also gives the message. $ which -a java /cygdrive/c/WINDOWS/system32/java $ set | grep JAVA JAVA_HOME=3D'C:\Program Files\Java\jdk1.6.0_20' I'm not caiming there is somethng wrong with cygwin, jut find it surprising to get this warning with a cygwin-aware program (mvn). Regards, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple