Skip to content

Error: M2_HOME is set to an invalid directory #1060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
damianszczepanik opened this issue Sep 20, 2016 · 2 comments
Closed

Error: M2_HOME is set to an invalid directory #1060

damianszczepanik opened this issue Sep 20, 2016 · 2 comments

Comments

@damianszczepanik
Copy link

Looks like some regression in configuration:

Error: M2_HOME is set to an invalid directory. 
M2_HOME = "C:\Program Files (x86)\Apache\Maven" 
Please set the M2_HOME variable in your environment to match the 
location of the Maven installation 
Command exited with code 1

https://ci.appveyor.com/project/damianszczepanik/cucumber-reporting/build/516

@FeodorFitsner
Copy link
Member

Maven is now part of build worker image and installed in C:\Program Files (x86)\Apache\Maven directory. mvn is added into PATH.

You can either reset or override M2_HOME variable in your build script if you are downloading Maven yourself.

@damianszczepanik
Copy link
Author

Removed custom Maven and used built-int
damianszczepanik/cucumber-reporting@ebb97ee

Thanks for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants