Quantcast

Ojdbc Dependency Issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Ojdbc Dependency Issue

TJ Greenier
I am trying to find the Oracle Ojdbc14.jar file in the maven repository so
that I can successfully add this as a dependency in my pom.xml.  I have
searched online and through the archives and all references point to the
following:

       <dependency>
            <groupId>ojdbc</groupId>
            <artifactId>ojdbc</artifactId>
            <version>14</version>
        </dependency>

However, when I browse the repo (
http://repo1.maven.org/maven2/ojdbc/ojdbc/14/) the pom file exists, but not
the jar file.  Likewise I considered using classes12.jar and found the same
problem.  The pom file exists but there is no jar file.

Am I going about this the right way?  Does anyone know of a repository where
this file exists?  I did use the install plugin to push the file locally,
but I want to simplify the process for my development team.  Any thoughts
would be appreciated.

Thanks,
TJ
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Ojdbc Dependency Issue

simon.kitching@chello.at
TJ Greenier schrieb:

> I am trying to find the Oracle Ojdbc14.jar file in the maven repository so
> that I can successfully add this as a dependency in my pom.xml.  I have
> searched online and through the archives and all references point to the
> following:
>
>        <dependency>
>             <groupId>ojdbc</groupId>
>             <artifactId>ojdbc</artifactId>
>             <version>14</version>
>         </dependency>
>
> However, when I browse the repo (
> http://repo1.maven.org/maven2/ojdbc/ojdbc/14/) the pom file exists, but not
> the jar file.  Likewise I considered using classes12.jar and found the same
> problem.  The pom file exists but there is no jar file.
>
> Am I going about this the right way?  Does anyone know of a repository where
> this file exists?  I did use the install plugin to push the file locally,
> but I want to simplify the process for my development team.  Any thoughts
> would be appreciated.
>  

The normal reason why there is a pom in the repo but no jar is because
the jar has a license that does not permit it to be redistributed by
anyone but the producer. I expect this is the case here, ie that it is
not legal for the oracle jars to be distributed from the apache servers.

In this situation, the only thing that can be done is to manually
install the file into your own repository. But then at least the
apache-provided pom gets downloaded so the maven metadata gets properly
set up for you.

You could try discussing this with your Oracle sales representative. Or
move to an open-source database.

Regards, Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE : Ojdbc Dependency Issue

Deneux, Christophe

Use com.oracle:ojdbc14:<RDBMS-version> instead of ojdbc:ojdbc:14 because ojdbc14 is different according to your Oracke RDBMS version
 
_______________________________________________________________________________
Christophe DENEUX / Capgemini Sud / Méditerranée
Technical Leader
Tel: + 33 4 93 95 55 92 / www.capgemini.com <http://www.capgemini.com/>
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
_______________________________________________________________________________
Please consider the environment and do not print this email unless absolutely necessary. Capgemini encourages environmental awareness.

________________________________

De: [hidden email] [mailto:[hidden email]]
Date: lun. 10/03/2008 17:18
À: Maven Users List
Objet : Re: Ojdbc Dependency Issue



TJ Greenier schrieb:

> I am trying to find the Oracle Ojdbc14.jar file in the maven repository so
> that I can successfully add this as a dependency in my pom.xml.  I have
> searched online and through the archives and all references point to the
> following:
>
>        <dependency>
>             <groupId>ojdbc</groupId>
>             <artifactId>ojdbc</artifactId>
>             <version>14</version>
>         </dependency>
>
> However, when I browse the repo (
> http://repo1.maven.org/maven2/ojdbc/ojdbc/14/) the pom file exists, but not
> the jar file.  Likewise I considered using classes12.jar and found the same
> problem.  The pom file exists but there is no jar file.
>
> Am I going about this the right way?  Does anyone know of a repository where
> this file exists?  I did use the install plugin to push the file locally,
> but I want to simplify the process for my development team.  Any thoughts
> would be appreciated.
>  

The normal reason why there is a pom in the repo but no jar is because
the jar has a license that does not permit it to be redistributed by
anyone but the producer. I expect this is the case here, ie that it is
not legal for the oracle jars to be distributed from the apache servers.

In this situation, the only thing that can be done is to manually
install the file into your own repository. But then at least the
apache-provided pom gets downloaded so the maven metadata gets properly
set up for you.

You could try discussing this with your Oracle sales representative. Or
move to an open-source database.

Regards, Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]





This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Ojdbc Dependency Issue

Trevor Torrez
In reply to this post by TJ Greenier
I do want to point out that "14" is not the version of "ojdbc".  It's
the J2SE version that that jar supports; "classes12" is for java 1.2,
ojdbc14 is for java 1.4, ojdbc5 and ojdbc 6 are for java 5 and 6
respectively.  You should probably be referencing the jars as
<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc14</artifactId>
    <version>10.2.0.3.0</version>
</dependency>

But as mentioned above you will need to deploy the jar to a repository
that you control.  Short of that is creating a simple batch / shell
script that developers can run to install the jar to their local
repositories.

On Mon, Mar 10, 2008 at 12:12 PM, TJ Greenier <[hidden email]> wrote:

> I am trying to find the Oracle Ojdbc14.jar file in the maven repository so
>  that I can successfully add this as a dependency in my pom.xml.  I have
>  searched online and through the archives and all references point to the
>  following:
>
>        <dependency>
>             <groupId>ojdbc</groupId>
>             <artifactId>ojdbc</artifactId>
>             <version>14</version>
>         </dependency>
>
>  However, when I browse the repo (
>  http://repo1.maven.org/maven2/ojdbc/ojdbc/14/) the pom file exists, but not
>  the jar file.  Likewise I considered using classes12.jar and found the same
>  problem.  The pom file exists but there is no jar file.
>
>  Am I going about this the right way?  Does anyone know of a repository where
>  this file exists?  I did use the install plugin to push the file locally,
>  but I want to simplify the process for my development team.  Any thoughts
>  would be appreciated.
>
>  Thanks,
>  TJ
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...