move java.awt.headless from environment to mvn-function