title: Simple Maven setup for creating JAX-WS webservice
body: <p>I'd like to <strong>create Maven project which will build my webservice to <code>war</code> file, ready to be deployed on GlassFish</strong>. Looks like piece of cake, however I can't find any tutorial that would explain how to do that. Most of them are outdated (around 2008).</p>
  <p>I'm using latest Java (1.8), GlassFish (4.1) and Maven (3.3.3).</p>
  <p>Goal is to get &quot;hello world&quot; web service running on GlassFish .</p>
  <p>Code:</p>
  <pre><code>import javax.jws.WebService;
  
  @WebService
  public class Hello {
      public String sayHello(String name) {
          return &quot;Hello &quot; + name + &quot;!&quot;;
      }
  }
  </code></pre>
  <p>What Maven plugin should I use?</p>