title: An error occurred because there is no graphics environment available
body: <p>I am getting below error when I try to use hudson and maven, Any idea how to resolve?</p>
  
  <pre><code>Xlib: connection to ":1.0" refused by server
  Xlib: No protocol specified
  
  [INFO] ------------------------------------------------------------------------
  [ERROR] FATAL ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] An error occurred because there is no graphics environment available.  Please set the headless-server setting in the Flex configuration file to true.
  [INFO] ------------------------------------------------------------------------
  [INFO] Trace
  java.lang.InternalError: An error occurred because there is no graphics environment available.
  </code></pre>
  
  <p>Thanks
  sharp  </p>