- 浏览: 1064529 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (501)
- dwr (6)
- javascript (84)
- oracle (66)
- jsp/servlet (18)
- ant (3)
- 基础知识 (12)
- EXT (10)
- My SQL (10)
- java (71)
- spring (37)
- 学习的对象 (2)
- Linux (24)
- 面试 (1)
- HTML/CSS (11)
- tomcat (11)
- 收藏夹 (2)
- Power Designer (2)
- struts.xml配置文件 (1)
- sturts2 (3)
- myeclipse (8)
- eclipse (7)
- Maven (34)
- SVN (3)
- SAP JCO (2)
- JBOSS (11)
- webservice (8)
- word (1)
- 敏捷开发 (1)
- sybase (4)
- Nexus (3)
- EhCache (3)
- log4j (3)
- Cookie (4)
- Session (4)
- CXF (7)
- AXIS (2)
- SSO (1)
- LDAP (1)
- velocity (2)
- Jquery (5)
- redis (2)
- http (4)
- dojo (1)
- Linux资源监控软件mnon的安装与运用 (1)
- notepad++ (1)
- EA (1)
- UML (1)
- JasperReports (1)
- 权限 (0)
- freemarker (4)
- Spring MVC (1)
- JMS (1)
- activeMQ (1)
- hession (3)
- 安全 (1)
- ibatis (2)
- log (1)
- nginx (1)
最新评论
-
winhbb:
我刚好遇到了一个问题(在可以依赖注入的场合有效):有两个模块A ...
解决Maven项目相互依赖/循环依赖/双向依赖的问题 -
nanjiwubing123:
long3ok 写道你好 XmlOutputFormatter ...
用XStream转换复杂XML -
zhoujianboy:
另外一个方法实现eclipse tomcat 热部署:http ...
eclipse下实现maven项目在tomcat容器热部署方法 -
long3ok:
你好 XmlOutputFormatter 请问这个类是在什么 ...
用XStream转换复杂XML -
ganbo:
总结的好,文章给力。
解决Maven项目相互依赖/循环依赖/双向依赖的问题
1.先去http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
下载 Oracle JDBC Driver 的 jar 文件
2.
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 \
-Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc.jar
10.2.0.3.0 只是说明,具体版本要自己看Server 的 DB 版本
Q:
I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
of course this does't work as it is not in the central repository used by maven. 2 questions:
1) How do I find a repository (if any) that contains this artifact?
2) How do I add it so that Maven will use it?
Thanks!
A:
1) How do I find a repository (if any) that contains this artifact?
Unfortunately due the binary license there is no public repository with the Oracle Driver JAR. This happens with many dependencies but is not Maven's fault. If you happen to find a public repository containing the JAR you can be sure that is illegal.
2) How do I add it so that Maven will use it?
Some JARs that can't be added due to license reasons have a pom entry in the Maven Central repo . Just check it out, it contains the URL to download the file which in this case is http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html . Once you've downloaded the JAR just add it to your computer repository with:
下载 Oracle JDBC Driver 的 jar 文件
2.
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 \
-Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc.jar
10.2.0.3.0 只是说明,具体版本要自己看Server 的 DB 版本
Q:
I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
of course this does't work as it is not in the central repository used by maven. 2 questions:
1) How do I find a repository (if any) that contains this artifact?
2) How do I add it so that Maven will use it?
Thanks!
A:
1) How do I find a repository (if any) that contains this artifact?
Unfortunately due the binary license there is no public repository with the Oracle Driver JAR. This happens with many dependencies but is not Maven's fault. If you happen to find a public repository containing the JAR you can be sure that is illegal.
2) How do I add it so that Maven will use it?
Some JARs that can't be added due to license reasons have a pom entry in the Maven Central repo . Just check it out, it contains the URL to download the file which in this case is http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html . Once you've downloaded the JAR just add it to your computer repository with:
发表评论
-
maven 获取jar从不同的仓库搜寻排序
2014-01-08 14:48 1503maven仓库读取备忘录: 在setting.xml配置了镜 ... -
Tomcat-maven-plugin插件使用
2014-01-03 14:50 2509maven-tomcat-plugin让maven与tomca ... -
制作maven archetype方法
2013-09-09 00:38 5905一直想生成一个archetype,节省初始化项目时间,时间让各 ... -
创建简单的maven archetype
2013-09-09 00:32 869如果你想定义一个maven工程模板,有一种很快的方法: 1.定 ... -
使用assembly plugin实现自定义打包
2013-09-08 23:56 579在上一篇文章中,讨论到在对maven的机制不熟悉的情况下,为了 ... -
maven相关
2013-09-08 11:32 8091、Maven内置变量说明: ${basedir} ... -
Maven 打包 jar 、war 文件时,不将 pom.xml 等打包进包中
2013-09-08 11:29 3209如果是 jar 包,在 Plugin 中配置 <buil ... -
maven super pom 文件位置
2013-09-05 16:00 1556D:\apache-maven-3.0.4\lib 下的 ma ... -
Maven profile filter
2013-09-05 15:03 2152使用maven的profile和filter插件管理配置项 ... -
maven资源文件引用
2013-08-27 00:07 1561资源文件引用: 1、maven默认系统的资源文件在src/m ... -
maven实现JS+CSS自动压缩
2013-08-26 22:02 10731. maven实现js+css自动压缩完整代码 <? ... -
maven 常用命令goal
2013-08-26 17:12 8191.显示一个插件所有的goal 2.创建一个基于模版的项目, ... -
maven 命令背后是如何工作的
2013-08-26 17:08 778Maven强大的一个重要的原因是它有一个十分完善的生命周期模型 ... -
maven war包插件
2013-08-23 14:38 0<plugins> <plug ... -
Maven 打包 jar 、war 文件时,不将 pom.xml 等打包进包中
2013-08-23 14:33 1361如果是 jar 包,在 Plugin 中配置 <bui ... -
使用maven打war包过程中对文件进行copy、rename(move)、delete操作
2013-08-23 14:29 14081、在pom中声明ant插件:maven-antrun-plu ... -
eclipse下实现maven项目在tomcat容器热部署方法
2013-08-23 14:27 24521、eclipse安装maven插件、svn插件 2、从sv ... -
maven-antrun-plugin(运行ant的插件)
2013-08-23 14:22 1107[转载声明] 转载时必须 ... -
Maven实战之antrun插件
2013-08-23 14:18 983在Maven实际使用过程中,有时候在对一些旧有的项目的做从Ma ... -
maven filter转换时容易忽略的错误
2013-04-18 11:48 2003使用Maven管理,定义了Filter,配置文件中的动态值都由 ...
相关推荐
I thought that a chapter on the Process API would be a good addition to this book. I added Chapter 10 to cover the Process API including enhancements to the Process API in JDK9. Java applications ...
License information can be found in the LICENSE file. This distribution may include materials developed by third parties. For license and attribution notices for these materials, please refer to the ...
License information can be found in the LICENSE file. This distribution may include materials developed by third parties. For license and attribution notices for these materials, please refer to the ...
A version of Ant, the build tool used to build and distribute the MUM project, can be downloaded here. Install Ant on your desktop. Change the setupMUM batch file so that the absolute paths to the ...
have a JDK that is up to date, or disable sendfile behavior in the Connector. 6427312: (fc) FileChannel.transferTo() throws IOException "system call interrupted" 5103988: (fc) FileChannel....
This applies to suggestions as you type, autocompletion of what you've entered so far if it matches only one result (both of these can be invoked manually using CTRL+SPACE), and help text when ...
《中国长期经济表现全览》是一份深度研究报告,旨在探讨中国经济自宋代以来直至2030年的演变历程和未来展望。这份报告涵盖了多个关键领域的分析,包括但不限于经济增长、产业结构、政策影响、社会变迁以及国际环境对...
That’s where this book comes in Spanning 466 pages, The Busy Coder’s Guide to Android Development covers a wide range of Android capabilities and APIs, from creating simple user interfaces, to ...
In this new book, you'll learn how the module system improves reliability and maintainability, and how it can be used to reduce tight coupling of system components. Foreword by Kevlin Henney. ...
raised my interest in OSGi and how it could be applied to scenarios in the enterprise Java space. It didn’t take much research to find out that some Java EE application server vendors had relied on ...
In order to run the jars, you have to add the jars in the dependency folder to your classpath and define the main class. These jars are mainly intended for integration in your projects if you are not ...
The public interfaces for the following classes may be added to in order to resolve bugs and/or add new features. No existing interface method will be removed or changed although it may be deprecated....
Simply put all the desired JAR files (opencv*.jar, ffmpeg*.jar, etc.), in addition to javacpp.jar and javacv.jar, somewhere in your class path. Here are some more specific instructions for common ...
Also, bugs that are found in the RI can be reported through the issue tracker. Source Code Download the source code from here, and execute this jar as java -jar JAXB2_src_20060607.jar This is ideal...
There Can Only Be One Manifest Destiny Lobbing One Over the Fence Callbacks Broadcast Intents Where’s the Remote? And the Rest of the Code? ■Chapter 30: Invoking a Service The Ties That Bind ...
A runnable jar that generate Javascript hook script to hook Android classes. Download Grab the prebuilt shadow jar (FridaAndroidTracer.jar) inside the repo, or clone the repo, open in IntelliJ IDEA. ...
完全可以根据github的要求来配置,我只是没分了~ 官网地址:https://github.com/magro/memcached-session-manager/wiki/SetupAndConfiguration#add-memcached-session-manager-jars-to-tomcat
As of verison 1.2.7.0, the core of JCS (the LRU memory cache, the indexed disk cache, the TCP lateral, and the RMI remote server) requires only two other jars. concurrent commons-logging From ...
This is a plugin for Presto that allow you to use Oracle Jdbc Connection Presto-Connectors Member Connection Configuration Create new properties file inside etc/catalog dir: connector.name=oracle #...
Spring boot 开发工具 You can use Spring Boot ...Although you could copy Spring Boot jars, we generally recommend that you use a build tool that supports dependency management (such as Maven or Gradle).