- 浏览: 495153 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (563)
- 工作经验 (12)
- 数据库 (13)
- Servlet (10)
- Struts2 (1)
- Spring (25)
- Eclipse (5)
- Hibernate (5)
- Eclips (8)
- HTTP (7)
- J2EE (21)
- EHcache (1)
- HTML (11)
- 工具插件使用 (20)
- JPA (2)
- 杂谈 (17)
- 数据结构与算法 (3)
- Cloud Foundry (1)
- 安全 (10)
- J2SE (57)
- SQL (9)
- DB2 (6)
- 操作系统 (2)
- 设计模式 (1)
- 版本代码管理工具 (13)
- 面试 (10)
- 代码规范 (3)
- Tomcat (12)
- Ajax (5)
- 异常总结 (11)
- REST (2)
- 云 (2)
- RMI (3)
- SOA (1)
- Oracle (12)
- Javascript (20)
- jquery (7)
- JSP自定义标签 (2)
- 电脑知识 (5)
- 浏览器 (3)
- 正则表达式 (3)
- 建站解决问题 (38)
- 数据库设计 (3)
- git (16)
- log4j (1)
- 每天100行代码 (1)
- socket (0)
- java设计模式 耿祥义著 (0)
- Maven (14)
- ibatis (7)
- bug整理 (2)
- 邮件服务器 (8)
- Linux (32)
- TCP/IP协议 (5)
- java多线程并发 (7)
- IO (1)
- 网页小工具 (2)
- Flash (2)
- 爬虫 (1)
- CSS (6)
- JSON (1)
- 触发器 (1)
- java并发 (12)
- ajaxfileupload (1)
- js验证 (1)
- discuz (2)
- Mysql (14)
- jvm (2)
- MyBatis (10)
- POI (1)
- 金融 (1)
- VMWare (0)
- Redis (4)
- 性能测试 (2)
- PostgreSQL (1)
- 分布式 (2)
- Easy UI (1)
- C (1)
- 加密 (6)
- Node.js (1)
- 事务 (2)
- zookeeper (3)
- Spring MVC (2)
- 动态代理 (3)
- 日志 (2)
- 微信公众号 (2)
- IDEA (1)
- 保存他人遇到的问题 (1)
- webservice (11)
- memcached (3)
- nginx (6)
- 抓包 (1)
- java规范 (1)
- dubbo (3)
- xwiki (1)
- quartz (2)
- 数字证书 (1)
- spi (1)
- 学习编程 (6)
- dom4j (1)
- 计算机系统知识 (2)
- JAVA系统知识 (1)
- rpcf (1)
- 单元测试 (2)
- php (1)
- 内存泄漏cpu100%outofmemery (5)
- zero_copy (2)
- mac (3)
- hive (3)
- 分享资料整理 (0)
- 计算机网络 (1)
- 编写操作系统 (1)
- springboot (1)
最新评论
-
masuweng:
亦论一次OutOfMemoryError的定位与解错 -
变脸小伙:
引用[color=red][/color]百度推广中运用的技术 ...
Spring 3 mvc中返回pdf,json,xml等不同的view -
Vanillva:
不同之处是什么??
Mybatis中的like查询 -
thrillerzw:
转了。做个有理想的程序员
有理想的程序员必须知道的15件事 -
liujunhui1988:
觉得很有概括力
15 个必须知道的 Java 面试问题(2年工作经验)
添加 oracle 驱动到maven 或其他 非maven仓库 jar 到 maven
- 博客分类:
- Maven
源:http://stackoverflow.com/questions/1074869/find-oracle-jdbc-driver-in-maven-repository
评:
11 down vote
For whatever reason, I could not get any of the above solutions to work. (Still can't.)
What I did instead was to include the jar in my project (blech) and then create a "system" dependency for it that indicates the path to the jar. It's probably not the RIGHT way to do it, but it does work. And it eliminates the need for the other developers on the team (or the guy setting up the build server) to put the jar in their local repositories.
UPDATE: This solution works for me when I run Hibernate Tools. It does NOT appear to work for building the WAR file, however. It doesn't include the ojdbc6.jar file in the target WAR file.
1) Create a directory called "lib" in the root of your project.
2) Copy the ojdbc6.jar file there (whatever the jar is called.)
3) Create a dependency that looks something like this:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
<scope>system</scope>
<systemPath>${basedir}/lib/ojdbc6.jar</systemPath> <!-- must match file name -->
</dependency>
Ugly, but works for me.
评:
11 down vote
For whatever reason, I could not get any of the above solutions to work. (Still can't.)
What I did instead was to include the jar in my project (blech) and then create a "system" dependency for it that indicates the path to the jar. It's probably not the RIGHT way to do it, but it does work. And it eliminates the need for the other developers on the team (or the guy setting up the build server) to put the jar in their local repositories.
UPDATE: This solution works for me when I run Hibernate Tools. It does NOT appear to work for building the WAR file, however. It doesn't include the ojdbc6.jar file in the target WAR file.
1) Create a directory called "lib" in the root of your project.
2) Copy the ojdbc6.jar file there (whatever the jar is called.)
3) Create a dependency that looks something like this:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
<scope>system</scope>
<systemPath>${basedir}/lib/ojdbc6.jar</systemPath> <!-- must match file name -->
</dependency>
Ugly, but works for me.
发表评论
-
Maven Sonatype Nexus return 401
2015-10-23 17:18 683源:http://www.trinea.cn/dev-tool ... -
Maven Release Plugin Prepare a Release and create new branch
2015-09-17 15:22 769源:http://maven.apache.org/maven ... -
maven 手动把本地jar安装到本地仓库
2015-08-05 20:39 496源:http://jingyan.baidu.com/arti ... -
生成jar文件命令行执行main方法
2015-07-08 21:12 486源:http://stackoverflow.com/ques ... -
maven shade plugin: Invalid signature file digest for Manifest main attributes
2015-07-08 21:08 1752源:http://zhentao-li.blogspot.co ... -
maven 自动部署Tomcat错误排除
2015-05-14 12:00 557源:http://my.oschina.net/jerryhu ... -
利用MAVEN打包时,如何包含更多的资源文件
2015-04-24 10:14 353源:http://bglmmz.iteye.com/blog/ ... -
Maven3实战笔记09Maven的私服-Nexus常用功能
2015-02-07 21:12 400源:http://suhuanzheng7784877 ... -
Maven入门指南⑤:使用Nexus搭建Maven私服
2015-02-07 19:19 271源:http://www.cnblogs.com/luotao ... -
Nexus启动失败The nexus-webapp service was launched, but failed to start.
2015-02-07 18:55 452源:http://niweiwei.iteye.com/blo ... -
修改maven3项目的默认的编译级别(compile level)
2014-11-03 11:09 1015源:http://hi.baidu.com/hi_hi/ite ... -
解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的办法
2014-04-27 19:39 635源:http://www.cnblogs.com/xiaona ... -
各数据库连接maven配置 各种数据库Hibernate链接配置
2013-11-25 09:23 910源:http://www.cnblogs.com/luowe ...
相关推荐
包含JDK8、JDK10所需要的驱动包,下载完成后可直接使用,或者使用cmd命令安装到maven资源库后,配置使用。
maven中oracle jar包
eclipse中maven 下载不到oracle数据库驱动 ojdbc5 ojdbc6 需要我们手动将驱动安装到本地仓库 1.找到安装命令的位置在项目的目录下 mvnw就是我们要用到的安装工具 2.下载 驱动 3.安装驱动 把需要安装的驱动放到第一步...
oracle所有maven中需要的jar包(ojdbc6,ojdbc7,ons ...)
适用于jdk1.8与Oracle数据库连接的OJDBC的驱动jar包
Oracle 19c(19.3)数据驱动ojdbc.jar及文档, 包含ojdbc8及ojdbc10, 分别对应jdk8及jdk10. 资源来源于Oracle官网, 压缩包中有详细说明
解决maven官方库中没有oracle jdbc驱动的问题 刚研究maven不久,遇到一个比较头疼的问题,在工程里怎么下都下载不了oracle的jdbc驱动。 刚还以为是网络问题,重新下载了很多次,都提示maven库里找不到相关jar文件。...
NULL 博文链接:https://crabdave.iteye.com/blog/2249408
Oracle JDBC驱动包有多个版本,选错ojdbc驱动,会导致各种莫名其妙的错误,每个ojdbc版本对应的Oracel版本、JDK版本都不一样,压缩包里面有详细说明。
oracle11g驱动包
由于Oracle授权问题,Maven3不提供Oracle JDBC driver,为了在Maven项目中应用Oracle JDBC driver,必须手动添加到本地仓库。 一.下载Oracle JDBC Driver 1.通过Oracle官方网站下载相应版本:...
oracle ojdbc8 ojdbc14 maven依赖
oracle jdbc驱动jar,maven官网资源不存在的时候,可以从这里获取。
maven中本地安装oracle,sqlserver驱动包,ojdbc6.jar,sqljdbc4-4.3.jar
Oracle驱动包 ojdbc6-11.2.0.4.0-atlassian-hosted.jar
java maven开发中在项目中添加oracle jdbc,使用本地jar包安装方式
oracle驱动,mavenjar包,直接拷贝到自己的maven库的com文件夹下
该资源主要是oracle的jar包,可用于在maven中进行添加本地oracle仓库(由于现在已无法直接使用pom安装oracle依赖)欢迎有需要的小伙伴下载使用!
oracle 驱动 jar 主要包括 ojdbc6.jar ojdbc14.jar,maven的私服必要的jar包
maven中不能直接下载ojdbc的jar包,需要手动下载。