Thanks for this new answer. > > maven 2.x uses/expects M2_HOME env. variable, not MAVEN_HOME (as in > > maven 1.x). This is confirmed by having a look at the > comments in the > > mvn.bat file in the bin directory. Try defining M2_HOME and see if > > that makes any difference.
I've already tried with M2_HOME and not MAVEN_HOME. -> Same problem. Moreover, if you read the mvn.bat script, you would see M2_HOME==MAVEN_HOME if M2_HOME isn't declared. > > As for UNC paths, like most pathing issues between windows > and java, > > I'd try using / instead of \ (i.e., //server/share/....). As a long > > shot you might try an URL of the form file://server/share/.... I've also tried with such UNC java '\' handle trick: Those samples are based on the interpreatation of a : 'mvn -X -U clean' M2_HOME=\\server\maven2 M2_HOME is interpreted with C:\server\maven2 M2_HOME=//server/maven2 M2_HOME is also interpreted with C:\server\maven2 M2_HOME=\\\\server\\maven2 Error : ERROR: M2_HOME is set to an invalid directory. M2_HOME = \\\\server\\maven2 Please set the M2_HOME variable in your environment to match the location of the Maven installation I think it's definitively a problem with the '/' or '\' windows UNC replacement algorithm. Jira is open here : http://jira.codehaus.org/browse/MNG-2580 Thanks for your support ------------------------------------------------------------------------------------------- "Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you." ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
