I\'m looking for a way to look up hostname and set it as a property in Maven.
This does not work in all environments:
...
Use a groovy script to set the project property
org.codehaus.groovy.maven gmaven-plugin generate-resources execute project.properties["hostname"] = InetAddress.getLocalHost().getHostName()