'Location of ~./mavenrc
I was setting up maven on OS X machine when I encountered the error :
JAVA_HOME should point to a JDK not a JRE.
On changing the JAVA_HOME variable to /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home and updating the PATH variable it still didn't work.
Turns out, JAVA_HOME reads from ~.mavenrc and not bash_profile.
So we have to update the JAVA_HOME in ~.mavenrc. But how do I know the location of the same?
Solution 1:[1]
The ~ indicates the $HOME directory, so it should be there. The dot behind the file name indicates it's a hidden file, you have to activate View > Show Hidden Files to see it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tomás Ribeiro |
