0. down file
1. exec
mvn install:install-file -Dfile=D:/war/lib/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
2. pom.xml
<!-- ojdbc6.jar example --> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0</version> </dependency>
Reference:
《How to add Oracle JDBC driver in your Maven local repository》