Navigation
Learn About
Developing With
Ingres Talk
Information
Toolbox
Views
Ingres JDBC With Maven
From Ingres Community Wiki
Maven is a project lifecycle management tool for Java. It can manage the dependencies, unit tests, releasing and deployment of a project.
The Ingres JDBC driver can be easily integrated into any Maven-controlled Java project as a project dependency. Therefore if you have a Java project that you want to utilize the Ingres JDBC driver, you can add it as a dependency and Maven will automatically download it for you and add it to the classpath.
Maven projects use a Project Object Model to describe the project. This is stored in a pom.xml file in the project's root folder.
In order to add the Ingres JDBC driver as a dependency, find or add the <dependencies> element (a child of the root <project> element) and add the dependency:
<dependency>
<groupId>com.ingres.jdbc</groupId>
<artifactId>iijdbc</artifactId>
<version>9.2-3.4.8</version>
</dependency>
This adds a dependency to the Ingres 9.2 JDBC driver (version 3.4.8). This is the default if no version is specified. Other versions are available as follows:
| Ingres Release | JDBC Driver Version | Maven JDBC Version |
|---|---|---|
| Ingres 2006 Rls 2 (9.1.x) | 3.2.4 | 9.1-3.2.4 |
| 9.2 | 3.4.7 | 9.2-3.4.7 |
| 9.2 | 3.4.8 | 9.2-3.4.8 |
Source and JavaDoc jars will be added soon. Watch this space for information on how to obtain these.
It is likely that new versions of the JDBC Driver have been released since this page was edited. Please check http://esd.ingres.com/product/drivers/JDBC/java/JDBC or http://repo1.maven.org/maven2/com/ingres/jdbc/iijdbc for the latest available versions.

