title: Creating stub files for ejb in maven build tool
body: <p>Team,</p>
  
  <p>Our project makes use of EJB, was 6.1 is our server, While deploying the code , am in need of stub files to be present in EAR (Maven Generated). Inorder to achieve this, am using was6 plug in our pom.xml</p>
  
  <pre><code>&lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;was6-maven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
          &lt;execution&gt;
             &lt;goals&gt;
                      &lt;goal&gt;ejbdeploy&lt;/goal&gt;
              &lt;/goals&gt;
           &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  
      &lt;plugin&gt;
          &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
          &lt;archive&gt;
          &lt;manifest&gt;
                 &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                       &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
          &lt;/manifest&gt;
          &lt;/archive&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p>For this we need to set the environment variables "WAS_HOME".</p>
  
  <p>But we cannot set the wasHome in continuum build server and hence we are getting BUILD ERROR -  "wasHome not defined"</p>
  
  <p>Is that any other way to achieve this?
  - Creating the stub files for all ejb class without using WAS 6 maven plugin in Maven.</p>