You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/01/05 18:12:55 UTC

[jira] Closed: (MNG-2580) UNC in MAVEN_HOME not working

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

Benjamin Bentmann closed MNG-2580.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 3.0-alpha-7)
         Assignee: Benjamin Bentmann

> UNC in MAVEN_HOME not working
> -----------------------------
>
>                 Key: MNG-2580
>                 URL: http://jira.codehaus.org/browse/MNG-2580
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.4
>         Environment: Windows XP
>            Reporter: Remy COQUEUGNIOT
>            Assignee: Benjamin Bentmann
>            Priority: Blocker
>
> Maven2 is installed in a corporate server : SERVER
> From my computer, this installation is accesible on a network share : \\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 which is stored in %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%
> The global settings.xml is read.
> This useCase seems OK with Maven 1.
> mvn -X doesn't give too any informations about the final %MAVEN_HOME%\conf which is used.
> But it prints the plugin-registry.xml locations which are based on the %MAVEN_HOME% 
> In this case \\SERVER\MAVEN2 is badly transformed in C:\SERVER\MAVEN2 :
> >set MAVEN_HOME=\\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> >mvn clean -X
> (...)
> [DEBUG] Building Maven global-level plugin registry from: 'C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4\bin\..\conf\plugin-registry.xml'
> (...)
> Thanks for your support and this great tool !

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira