title: How do I get Intellij IDEA to call wsimport when I build my project?
body: <p>In my pom file, I have this plugin:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jax-ws-commons&lt;/groupId&gt;
              &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;Generate Web Service Client&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;wsimport&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;keep&gt;true&lt;/keep&gt;
                          &lt;extension&gt;true&lt;/extension&gt;
                          &lt;catalog&gt;App-models/catalog.xml&lt;/catalog&gt;
                          &lt;packageName&gt;com.app.client&lt;/packageName&gt;
                          &lt;wsdlUrls&gt;
                              &lt;wsdlUrl&gt;${basedir}/xml-resources/web-service-references/App/wsdl/App.wsdl&lt;/wsdlUrl&gt;
                          &lt;/wsdlUrls&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>This works exactly like it's supposed to if I run <code>mvn compile</code>: It generates the client sources.  But, if I <em>build</em> in Intellij IDEA, it seems to skip this plugin/step.  In other words, it skips wsimport if I click this button:</p>
  
  <p><img src="https://i.stack.imgur.com/BlGEP.png" alt="build button"></p>
  
  <p>Since IDEA is importing all the other build settings from the pom file, why not this one?  </p>
  
  <p>My work around is to manually call <code>mvn compile</code> if I ever clean my project or change a web service, but it's pretty annoying that Intellij-IDEA isn't automatically doing this for me.  Is this a bug, or is there a setting I can turn on to make it do this step?</p>