maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boda Béla (JIRA) <>
Subject [jira] Commented: (MNG-4414) "ERROR: M2_HOME is set to an invalid directory" Again ???
Date Tue, 10 Nov 2009 07:13:55 GMT


Boda Béla commented on MNG-4414:

Yes that was the problem.

But why is it needed?
I simply removed that ckeck, and everything is fine.
I think it is a very bad way of checking if M2_HOME points to the appropriate directory, because
I have multiple versions of maven on the PATH, so I have to rename the files, and don't want
any redundand mvn.bats.

It would be better to check the lib\maven-2.2.1-uber.jar maybe. That is what metters, doesn't


> "ERROR: M2_HOME is set to an invalid directory" Again ???
> ---------------------------------------------------------
>                 Key: MNG-4414
>                 URL:
>             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:
For more information on JIRA, see:


View raw message