Skip to content
Advertisement

Getting compile failure for maven build.. package COM.ibm.db2.jdbc.app does not exist

I am getting maven compile error package COM.ibm.db2.jdbc.app does not exist when I am trying to build my maven project with db2 jars and zips.

The code compiles for db2 jars/zip in RAD.

My nexus reposistory has the following files and dependencies defined and I am able to use them in my pom as well.

JavaScript

This is the source code which uses this ..

JavaScript

UPDATE for MAVEN EXCEPTION

JavaScript

UPDATE running maven with -e

JavaScript

My pom Dependency for DB2 Jars/zip file . This is defined in globally accesible company wide nexus repo

JavaScript

Here is the FULL Pom

JavaScript

Can anyone please help me and let me know what I am missing here.

Thanks Dhiren

Advertisement

Answer

The app driver (COM.ibm.db2.jdbc.app) has long been deprecated; it requires the native DB2 CLI driver to be installed. You should be using the JCC driver (com.ibm.db2.jcc). More info in the manual.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement