title: Adding DB2 JDBC Driver via Maven
body: <p>I am trying to connect to a DB2 database via the JDBC driver.
  I added the following entry in my pom.xml</p>
  
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/com.ibm.db2/db2jcc_license_cu --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.ibm.db2&lt;/groupId&gt;
      &lt;artifactId&gt;db2jcc_license_cu&lt;/artifactId&gt;
      &lt;version&gt;9.7&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/com.ibm.db2/db2jcc --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.ibm.db2&lt;/groupId&gt;
      &lt;artifactId&gt;db2jcc&lt;/artifactId&gt;
      &lt;version&gt;8.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/com.ibm.db2.jcc/db2jcc4 --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.ibm.db2.jcc&lt;/groupId&gt;
      &lt;artifactId&gt;db2jcc4&lt;/artifactId&gt;
      &lt;version&gt;10.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But the maven build is failing with the following issue </p>
  
  <pre><code>   [INFO] Downloading from : https://repo.maven.apache.org/maven2/com/ibm/db2/db2jcc_license_cu/9.7/db2jcc_license_cu-9.7.pom
      [WARNING] The POM for com.ibm.db2:db2jcc_license_cu:jar:9.7 is missing, no dependency information available
      [INFO] Downloading from : https://repo.maven.apache.org/maven2/com/ibm/db2/db2jcc/8.1/db2jcc-8.1.pom
      [WARNING] The POM for com.ibm.db2:db2jcc:jar:8.1 is missing, no dependency information available
      [INFO] Downloading from : https://repo.maven.apache.org/maven2/com/ibm/db2/jcc/db2jcc4/10.1/db2jcc4-10.1.pom
      [WARNING] The POM for com.ibm.db2.jcc:db2jcc4:jar:10.1 is missing, no dependency information available
  [ERROR] Failed to execute goal on project &lt;somename&gt;: Could not resolve dependencies for project
  </code></pre>
  
  <p>How should I add the dependency for DB2 driver in maven?</p>