title: Using provided scope for javaee-api version 6 causes wsgen to fail in Maven
body: <p>I use wsgen from the jaxws-maven-plugin to generate web service artifacts from my @WebService java class (start from Java).  My web service class injects an @EJB.  I've included the javaee-api version 6 as a dependency.</p>
  
  <p>Everything was working fine until I changed the javaee-api scope to provided.  If I don't do this the javaee-api.jar gets included in my .war file, which I do not want.</p>
  
  <p>Using provided shouldn't cause a compile failure.  <a href="http://old.nabble.com/-Issue-837--New---wsgen-having-problems-with-javax.ejb.%2a-annotations-td27796924.html" rel="nofollow">Someone else noticed this</a> but not in maven.</p>
  
  <p>Here's the relevant section from my pom.xml.</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
        &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt;
        &lt;version&gt;1.12&lt;/version&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;goals&gt;
              &lt;goal&gt;wsgen&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
              &lt;sei&gt;com.co.report.reports.ws.server.ReportService&lt;/sei&gt;
              &lt;genWsdl&gt;false&lt;/genWsdl&gt;
              &lt;keep&gt;true&lt;/keep&gt;
            &lt;/configuration&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;javax&lt;/groupId&gt;
      &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
      &lt;version&gt;6.0&lt;/version&gt;
      &lt;!--   Setting &lt;scope&gt;provided&lt;/scope&gt; causes compile failure --&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
    &lt;/dependency&gt;
  </code></pre>