Maven can not download Oracle driver problem

  Cause of the problem: because the oracle driver needs official authorization, so directly in pop.xml configuration file could not be downloaded successfully.

  Solution: By installing the driver package to a local maven repository, can solve this problem.

  1. Enter the following commands in cmd maven

  mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdbc6.jar

  Wherein -Dfile = ojdbc6.jar the driver package is a relative path

  After a successful installation can be used in pom.xml





Accessories list

 

Reproduced in: https: //my.oschina.net/MeiJianMing/blog/1812017

Guess you like

Origin blog.csdn.net/weixin_34100227/article/details/92546511