I would add the dependency to the pom.xml
<https://github.com/geotools/geotools/blob/master/modules/plugin/jdbc/jdbc-db2/pom.xml>,
run mvn eclipse:eclipse, refresh in eclipse ... and expect it to work.



--
Jody Garnett

On 3 January 2017 at 09:53, David Adler <[email protected]> wrote:

> When attempting to run the DB2 online test from the Windows command line
> like:
>
> J:\geotools\modules\plugin\jdbc\jdbc-db2>mvn -P online install
>
> No tests are run and there is the message
> Skipping db2 tests, resources not available:
> org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> class 'com.ibm.db2.jcc.DB2Driver'
> which is probably because the DB2 JDBC driver is not in the classpath.
> How do I add this to the classpath for the mvn test run?
>
> Is it possible to run the online tests from within Eclipse and if so,
> where would the JDBC drivers be added to the classpath?
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to