How do you fix the missing 'javadoc' command issue when calling maven from IntelliJ?
intellij-idea, javadoc, maven
Solution
With IDEA 12 and older on Mac you may need to define `JAVA_HOME` environment variable per this answer. IDEA 13 should read the Terminal environment automatically, but not from `.bash_profile`.
Problem
I keep getting this when calling `maven install` from IntelliJ: ``` Error while creating archive: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. ``` I can run maven-install just fine from the terminal inside of my working directory, but does anyone know how to get this to actually work in IntelliJ?