adding maven glassfish plugin https://maven-glassfish-plugin.java.net/examples/complete.html