Go to command prompt and run the following command to add OJDBC6.JAR to local repository:
mvn install:install-file -Dfile=d:\software\java\ojdbc6.jar -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.0.0 -Dpackaging=jar
We are adding OJDBC6.JAR with groupid com.oracle and artifactid ojdbc6 and version 11.0.0. You can give different values, if you like. This will
copy JAR file to local repository from where Maven can retrieve when needed.