Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you fix the missing 'javadoc' command issue when calling maven from IntelliJ?

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?

like image 833
kakigoori Avatar asked Dec 16 '13 17:12

kakigoori


1 Answers

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.

like image 152
CrazyCoder Avatar answered Nov 04 '22 16:11

CrazyCoder