In order to be able to share our IML files, we've defined a M2 path variable in IDEA. It points to the local library repository.
TeamCity seems to have a problem with that:
java.lang.RuntimeException: There are undefined path variables in project configuration files.
: In order for the project to load all path variables must be defined.: M2
I have set the M2 variable in the BuildAgent's machine environment variable. I've add the path variable in the runner configuration itself, as well as in the system properties, I always get the error.
What can I do? Where am I suppose to set this variable?