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 2009/10/31 19:59:55 UTC

[jira] Closed: (MNG-4414) "ERROR: M2_HOME is set to an invalid directory" Again ???

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

Benjamin Bentmann closed MNG-4414.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Benjamin Bentmann

I just booted Vista, downloaded Maven 2.1.0, unzipped the archive to {{D:\java\maven}}, replaced {{D:\java\maven\apache-maven-2.1.0\bin\mvn.bat}} with your {{mvn210.bat}}, added {{D:\java\maven\apache-maven-2.1.0\bin}} to my {{PATH}} and executed {{mvn -v}}, works without problems.

So this appears to be a misconfiguration on your side. As already suggested by Gajo Csaba, you might want to make the batch file echo the value of {{%M2_HOME%\bin\mvn.bat}} and see whether this path points at the intended file. Otherwise, you could seek help on the [user mailing list|http://maven.apache.org/mail-lists.html].

> "ERROR: M2_HOME is set to an invalid directory" Again ???
> ---------------------------------------------------------
>
>                 Key: MNG-4414
>                 URL: http://jira.codehaus.org/browse/MNG-4414
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Bootstrap & Build
>    Affects Versions: 2.1.0, 2.2.1
>         Environment: Windows Vista, JDK 1.5.0_11
>            Reporter: Boda Béla
>            Assignee: Benjamin Bentmann
>         Attachments: mvn210.bat, mvn221.bat, settings.xml
>
>
> I would like to upgrade from 2.0.9 to 2.2.1, but I face the following problem.
> I simply set the M2_HOME variable in the mvn210.bat:
> SET M2_HOME=D:\java\maven\apache-maven-2.1.0
> I run mvn210.bat and get this error:
> "ERROR: M2_HOME is set to an invalid directory"
> I attached my configs. This is ordinary i think.
> The same configuration is working with 2.0.9.

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