maven手动添加 oracle 依赖

来源:互联网 发布:vlan网络协议报告 编辑:程序博客网 时间:2024/05/17 19:57

1.下载架包http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html

2.下载架包到F:  

3.cd 到F  

运行添加命令

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar -Dfile=ojdbc7.jar


4.maven 添加依赖

<dependency>      
      <groupId>com.oracle</groupId>      
      <artifactId>ojdbc7</artifactId>      
      <version>12.1.0.2</version>
    </dependency> 

原创粉丝点击