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.

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/....

If that all fails then Wayne is probably correct.

HTH,
Doug


On 9/28/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

Probably there's some code like:
if (os == windows)
   if (path doesn't start with a drive letter)
      path.prepend("c:")

that should be changed. Definitely sounds like a bug, but not a big
deal to fix now that we have the mvn -X output and probably a good
idea where to look.

Wayne

On 9/28/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Thanks for the answer
>
> Mvn -X give some informations, but not much about this problem :
>
> Environment:
>  -Windows XP
>  -My local repositories is local (C:\M2LocalRepository) and is empty
>  -frmlefsi20 is a corporate SAN
>  -frcf1hdu10 is a users NT domain server
>
>
>
> >set MAVEN_HOME=\\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> >set PATH=%MAVEN_HOME%\bin;%PATH%
> >mvn -X clean
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from:
'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
'C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-
2.0.4\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
----------------------------------------------------------------------------
> [INFO] Building Projet de test maven2/SVN/Contiuum
> [INFO]    task-segment: [clean]
> [INFO]
----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
> [WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from
repository: central due to an er
> ror: Error transferring file
> [INFO] Repository 'central' will be blacklisted
>
> (...)
>
> => HTTP Proxy problems. My %MAVEN_HOME%/conf/setting.xml is not read
>
>
> >net use z: \\frmlefsi20\inet_dev
> >set MAVEN_HOME=Z:\DEVPLATFORM\maven-2.0.4
> >set PATH=%MAVEN_HOME%\bin;%PATH%
> >mvn -X clean
>
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from:
'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
'Z:\DEVPLATFORM\maven-2.0.4\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
----------------------------------------------------------------------------
> [INFO] Building Projet de test maven2/SVN/Contiuum
> [INFO]    task-segment: [clean]
> [INFO]
----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
> [DEBUG] maven-clean-plugin: resolved to version 2.1 from repository
central
> [DEBUG] Trying repository central
> Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
> 703b downloaded
> [DEBUG]   Artifact resolved
>
> (...)
>
> => HTTP Proxy is correctly used. My %MAVEN_HOME%/conf/setting.xml is
read.
>
>
> Apparently the UNC environment variable isn't correctly parsed :
> \\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> Is transformed in :
> C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
>
> I'm going to open a Jira file.
>
>
>
>
>
>
>
>
>
>
> > -----Message d'origine-----
> > De : Wayne Fay [mailto:[EMAIL PROTECTED]
> > Envoyé : jeudi 28 septembre 2006 15:54
> > À : Maven Users List
> > Objet : Re: Maven2 and Network Shares
> >
> > Try mvn -X for more debugging info. You gave us almost
> > nothing to look at/work with.
> >
> > Wayne
> >
> > On 9/28/06, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > Anyone got some ideas ?
> > >
> > >
> > > > Hi all,
> > > >
> > > > I've installed Maven2 in a corporate environment.
> > > > From my computer (Windows XP) this installation is accesible with
> > > > \\SERVER\MAVEN2
> > > >
> > > > From a command line I setup MAVEN_HOME with this UNC:
> > > > > set MAVEN_HOME=\\SERVER\MAVEN2
> > > > And put it in the PATH
> > > > > set PATH=%MAVEN_HOME%\bin;%PATH%
> > > > When I try to build any projects, maven is unable to
> > acces my global
> > > > settings : %MAVEN_HOME%\conf\settings.xml But when I
> > mount a network
> > > > share to this UNC:
> > > > > net use Z: \\SERVER\MAVEN2
> > > > ...Setup MAVEN_HOME ...
> > > > > set MAVEN_HOME=Z:\
> > > > ...And put it in the PATH ...
> > > > > set PATH=%MAVEN_HOME%\bin;%PATH%
> > > > My global settings are OK ?!?
> > > > Unfortunately , some of my software could NOT mount any network
> > > > drive but needs to acces maven2 global installation...
> > > >
> > > > Thanks a lot!
> > > >
> > > > Rémy C.
> > > >
> > >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
-------------------------------------------------------------------------------------------
> "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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to