Connecting to an Oracle database in Ecliipse works, fails with Maven

thinking is something quite silly, but I can't see it.

I have some java which connects to an oracle database, within eclipse, I configured the buildpath to point to the ojdbc6.jar file and when I run inside Eclipse there are no issues.

However when I try and tun in maven (using mvn clean test) I get a class not found error. In Eclipse I added the ojdbc6 jar file to the order and export but still no joy (confirmed that there were changes in the .classpath file)

I know this must be something silly - hoping someone can help?

-------------Problems Reply------------

Realised the error - and was simple - forgot to include the jar in the POM.xml

Category:java Views:0 Time:2019-01-11

Related post

Copyright (C), All Rights Reserved.

processed in 0.111 (s). 11 q(s)