I searched all over for a resolution to this problem, but could not find anything specific to my setup. Finally, one of our sys admins figured it out.
I am running Intellij IDEA on Ubuntu 11.10. My Maven pom.xml file was unable to resolve a symbol, a system property environmental variable env.HOSTNAME.
Copy from user1141627 answers' edit:
It turns out that we had to manually set this variable from the terminal so Java would recognize it. The command was:
After restarting Intellij, env.HOSTNAME resolved just fine. To get yourhostname, you can use the command:
or
I realize this is not a question, it is an answer. Hopefully someone finds it useful if they come across a similar problem.