title: Adding db2 jars to java webapp using maven
body: <p>I'm trying to add the following db2 jars to my Java web application using Maven...</p>
  
  <pre><code>db2jcc_license_cu.jar  
  db2jcc_javax.jar   
  db2jcc.jar
  </code></pre>
  
  <p>I'm following the instructions posted in this post...
  <a href="https://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them">Can I add jars to maven 2 build classpath without installing them?</a></p>
  
  <p>I want to use the static in-project repository solution. So far I have...</p>
  
  <ol>
  <li>Created a folder in my root directory named lib. Inside this
  directory lives the three db2 jars.</li>
  <li>Added the following to my pom file...</li>
  </ol>
  
  <blockquote>
  <pre><code> &lt;repository&gt;
          &lt;id&gt;lib&lt;/id&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;checksumPolicy&gt;ignore&lt;/checksumPolicy&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;url&gt;file://${project.basedir}/lib&lt;/url&gt;    
   &lt;/repository&gt; 
   &lt;/repositories&gt;
  </code></pre>
  </blockquote>
  
  <pre><code>&lt;dependency&gt; 
      &lt;groupId&gt;com.ibm.db2.jcc&lt;/groupId&gt;
      &lt;artifactId&gt;db2jcc&lt;/artifactId&gt;
      &lt;version&gt;3.8.47&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.ibm.db2.jcc&lt;/groupId&gt;
      &lt;artifactId&gt;db2jcc_license_cu&lt;/artifactId&gt;
      &lt;version&gt;3.8.47&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But when I run a maven install I get ...</p>
  
  <pre><code>[WARNING] The POM for com.ibm.db2.jcc:db2jcc:jar:3.8.47 is missing, no dependency information available
  [WARNING] The POM for com.ibm.db2.jcc:db2jcc_license_cu:jar:3.8.47 is missing, no dependency information available
  </code></pre>
  
  <p>I got the version of the Jars by running a...</p>
  
  <blockquote>
    <p>java com.ibm.db2.jcc.DB2Jcc -version</p>
  </blockquote>
  
  <p>Have I specified this version info corretly? Can anyone suggest what I am doing wrong? </p>