title: Maven dependencies for IBM Websphere packages
body: <p>I'm trying to convert a "classic" JAVA EE project, using IBM websphere 8.0.0.5, into a maven multi module project and facing issues with the IBM dependecies.</p>
  
  <p>We use IBM classes from the following packages:</p>
  
  <ul>
  <li>com.ibm.websphere.asynchbeans</li>
  <li>com.ibm.websphere.scheduler    </li>
  <li>com.ibm.websphere.ce.cm</li>
  <li>com.ibm.ws.asynchbeans</li>
  <li>com.ibm.ws.util.ThreadPool</li>
  </ul>
  
  <p>To get my local project to be compiled I downloaded the was.installer-8.0.0.pm from <a href="http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/com/ibm/tools/target/was.installer/8.0.0/" rel="noreferrer">IBM</a> and installed it to my maven using</p>
  
  <pre><code>mvn install -f "was.installer-8.0.0.pom" -D serverInstallationFolder="C:\Program Files (x86)\IBM\WebSphere\AppServer"
  </code></pre>
  
  <p>This step was successfull according to command line output.</p>
  
  <p>I then added the following dependencies to my project as described from IBM:</p>
  
  <p>In parent:</p>
  
  <pre><code>&lt;dependency&gt;
   &lt;groupId&gt;com.ibm.tools.target&lt;/groupId&gt;
   &lt;artifactId&gt;was&lt;/artifactId&gt;
   &lt;version&gt;8.0.0&lt;/version&gt;
   &lt;type&gt;pom&lt;/type&gt;
   &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In module:</p>
  
  <pre><code> &lt;dependency&gt;
     &lt;groupId&gt;com.ibm.tools.target&lt;/groupId&gt;
     &lt;artifactId&gt;was&lt;/artifactId&gt;
   &lt;/dependency&gt;      
  </code></pre>
  
  <p>But I still can't compile my project as the IBM packages are not found.</p>
  
  <p>Can anyone help me to find and correct a mistake I made?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>After following BevynQ tip from the comments I copied the "was_public.jar" to "was_public-8.0.0.jar" (described at <a href="https://www.ibm.com/support/knowledgecenter/was_beta/com.ibm.websphere.wdt.doc/topics/install_server_apis.htm" rel="noreferrer">IBM here</a>) and added it to my repository:</p>
  
  <pre><code>mvn install:install-file -Dfile="C:\Program Files (x86)\IBM\WebSphere\AppServer\dev\was_public-8.0.0.jar" -DpomFile="C:\Program Files (x86)\IBM\WebSphere\AppServer\dev\was_public-8.0.0.pom"
  </code></pre>
  
  <p>I then changed the dependencies to:</p>
  
  <pre><code>&lt;dependency&gt;
   &lt;groupId&gt;com.ibm.websphere.appserver&lt;/groupId&gt;
   &lt;artifactId&gt;was_public&lt;/artifactId&gt;
   &lt;version&gt;8.0.0&lt;/version&gt;
   &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
   &lt;dependency&gt;
     &lt;groupId&gt;com.ibm.websphere.appserver&lt;/groupId&gt;
     &lt;artifactId&gt;was&lt;/artifactId&gt;
   &lt;/dependency&gt;    
  </code></pre>
  
  <p>This helped to get the compiling errors for the imports to <code>com.ibm.websphere</code> done.</p>
  
  <p>What I now have still open is the packages <code>com.ibm.ws.*</code> package. Anyone have an idea?</p>
  
  <p><strong>Edit 2</strong>
  I added the following dependency and then I was rid of the <code>com.ibm.ws.*</code> import errors.</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.ibm.websphere.ws&lt;/groupId&gt;
    &lt;artifactId&gt;com.ibm.ws.runtime&lt;/artifactId&gt;
    &lt;version&gt;1.0.0&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>But it still does not compile as now indirectly references can not be found (in my case <code>commonj.work.WorkManager</code>). It seems I need to add further .jars for every single thing. Isn't there an easier way to provide all websphere jars at once as descirbe in the above linked tutorial with the <code>com.ibm.tools</code>dependency (which do not work)?</p>