I am trying to get IntelliJ to understand where the path variable M2_HOME is, obviously I am failing. I have added it in the .bashrc but after what I read from other posts this on sets the variable in the CLI. Where should I add it, and so it is set each time I login?
I have read the other StackOverflow posts about the topic but I don't understand where I should add it.