`
123003473
  • 浏览: 1064529 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Some JARs that can't be added due to license reasons have a pom entry in the Mav

 
阅读更多
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:

分享到:
评论

相关推荐

    Java APIs, Extensions and Libraries-Apress(2018).pdf

    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 ...

    mysql-connector-java-8.0.21.jar

    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 ...

    mysqlconnector8.0.20.zip

    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 ...

    tomcat-7_API_帮助文档

    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....

    thymeleaf-extras-eclipse-plugin-2.1-master.zip

    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 ...

    Chinese Economic Performance in the Long Run Full

    《中国长期经济表现全览》是一份深度研究报告,旨在探讨中国经济自宋代以来直至2030年的演变历程和未来展望。这份报告涵盖了多个关键领域的分析,包括但不限于经济增长、产业结构、政策影响、社会变迁以及国际环境对...

    CommonsWare.The.Busy.Coders.Guide.to.Android.Development.Version.8.2.2017

    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 ...

    The Java Module System.epub

    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. ...

    Pro+Spring+Dynamic+Modules+for+OSGi+Service+Platforms

    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 ...

    维基百科javaAPI----JWPL

    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 ...

    tomcat-8_API

    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....

    javacv-platform-1.3.3-src

    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 ...

    JAXB(JAXB支持、源码、官方说明文档)

    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...

    一本android的好书beginning android 2 和 源码

    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 ...

    Android代码-FridaAndroidTracer

    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. ...

    memcached-session-manager jars to tomcat.rar

    完全可以根据github的要求来配置,我只是没分了~ 官网地址:https://github.com/magro/memcached-session-manager/wiki/SetupAndConfiguration#add-memcached-session-manager-jars-to-tomcat

    Required jars by JCS

    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 ...

    presto-oracle

    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 cli 2.2.2 命令行接口

    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).

Global site tag (gtag.js) - Google Analytics