title: Look up hostname from Maven
body: <p>I'm looking for a way to look up hostname and set it as a property in Maven.</p>
  
  <p>This does not work in all environments:</p>
  
  <pre><code>...
  &lt;properties&gt;
     &lt;hostname&gt;${env.HOSTNAME}&lt;/hostname&gt;
  &lt;/properties&gt;
  ...
  </code></pre>
  
  <p>Any suggestions?</p>