You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ricky <ri...@gmail.com> on 2008/04/17 02:58:33 UTC

Oracle drivers dependencies

Hi,

I am trying to add:
     *   <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc14</artifactId>
            <version>9.0.2.0.0</version>
        </dependency>*

in my POM xml and i am getting :

*Path to dependency:
    1)
PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
    2) com.oracle:ojdbc14:jar:9.0.2.0.0

  com.oracle:ojdbc14:jar:9.0.2.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to
download the artifact from any repository

Try downloading the file manually from:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

Then, install it using the command:
    mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
-Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
    mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
-Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
    1)
PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
    2) com.oracle:ojdbc14:jar:9.0.2.0.0


  com.oracle:ojdbc14:jar:9.0.2.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)*


*Am i doing something wrong ?*



Regards
Vyas, Anirudh
|| ॐ ||

Re: Oracle drivers dependencies

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Apr 16, 2008 at 9:23 PM, Ricky <ri...@gmail.com> wrote:

>  I copied the jars manually to the m2 repository cache in path *
>  .m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*
>
>  But when i run *mvn clean install*, it still says artifact is missing. Am i
>  missing your point ? (My apologies if this sounds dumb)

Use the install plugin to add files to your local repo:  mvn
install:install-file ...

http://maven.apache.org/plugins/maven-install-plugin/usage.html

Double check that the groupId/artifactId/version match exactly between
what you install and the dependency you declare.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Oracle drivers dependencies

Posted by Ricky <ri...@gmail.com>.
Wendy, Nicolas,

Thanks a bunch it worked. appreciate your help. :)

Rick

On Thu, Apr 17, 2008 at 1:31 AM, nicolas de loof <ni...@apache.org> wrote:

> To use ojdbc14 version 10.2.0.2.0 ... you have to set your dependency to
> version "10.2.0.2.0" !
>
> also, the "_g" (jar compiled with debugs) version will not be used by
> maven
> until you tell him.
> rename the jar "m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14-g.jar"
> ("-", not "_")
> and add <classifier>g</classifier> to your dependency.
>
> Nico.
>
>
> 2008/4/17, Ricky <ri...@gmail.com>:
> >
> > Hey Wayne,
> >
> > I copied the jars manually to the m2 repository cache in path *
> > .m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*
> >
> > But when i run *mvn clean install*, it still says artifact is missing.
> Am
> > i
> > missing your point ? (My apologies if this sounds dumb)
> >
> > Rick
> >
> > On Thu, Apr 17, 2008 at 12:09 AM, Wayne Fay <wa...@gmail.com> wrote:
> >
> > > No, Central does not host this jar, only the pom and the md5/sha1
> files.
> > >
> > > This jar must be downloaded and manually installed into your local
> > > repo cache due to Oracle's licensing requirements.
> > >
> > > Wayne
> > >
> > > On 4/16/08, Manos Batsis <ma...@geekologue.com> wrote:
> > > >
> > > > The repo has it [1], here the pom fragment:
> > > >
> > > >
> > > > <groupId>com.oracle</groupId>
> > > > <artifactId>ojdbc14</artifactId>
> > > > <version>9.0.2.0.0</version>
> > > >
> > > > [1]
> > > > http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
> > > >
> > > > No idea whats wrong :-/
> > > >
> > > > Manos
> > > >
> > > >
> > > >
> > > >
> > > > Ricky wrote:
> > > > > Hi,
> > > > >
> > > > > I am trying to add:
> > > > >     *   <dependency>
> > > > >            <groupId>com.oracle</groupId>
> > > > >            <artifactId>ojdbc14</artifactId>
> > > > >            <version>9.0.2.0.0</version>
> > > > >        </dependency>*
> > > > >
> > > > > in my POM xml and i am getting :
> > > > >
> > > > > *Path to dependency:
> > > > >    1)
> > > > >
> > > >
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > > > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > > > >
> > > > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >
> > > > >
> > > > org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > > > Unable to
> > > > > download the artifact from any repository
> > > > >
> > > > > Try downloading the file manually from:
> > > > >
> > > >
> > http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
> > > > >
> > > > > Then, install it using the command:
> > > > >    mvn install:install-file -DgroupId=com.oracle
> > -DartifactId=ojdbc14
> > > > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> > > > >
> > > > > Alternatively, if you host your own repository you can deploy the
> > file
> > > > > there:
> > > > >    mvn deploy:deploy-file -DgroupId=com.oracle
> -DartifactId=ojdbc14
> > > > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url]
> > > > > -DrepositoryId=[id]
> > > > >
> > > > > Path to dependency:
> > > > >    1)
> > > > >
> > > >
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > > > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > > > >
> > > > >
> > > > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)*<http://repo1.maven.org/maven2%29*>
> <
> > http://repo1.maven.org/maven2%29*>
> > > > >
> > > > >
> > > > > *Am i doing something wrong ?*
> > > > >
> > > > >
> > > > >
> > > > > Regards
> > > > > Vyas, Anirudh
> > > > > || ॐ ||
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
>

Re: Oracle drivers dependencies

Posted by nicolas de loof <ni...@apache.org>.
To use ojdbc14 version 10.2.0.2.0 ... you have to set your dependency to
version "10.2.0.2.0" !

also, the "_g" (jar compiled with debugs) version will not be used by maven
until you tell him.
rename the jar "m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14-g.jar"
("-", not "_")
and add <classifier>g</classifier> to your dependency.

Nico.


2008/4/17, Ricky <ri...@gmail.com>:
>
> Hey Wayne,
>
> I copied the jars manually to the m2 repository cache in path *
> .m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*
>
> But when i run *mvn clean install*, it still says artifact is missing. Am
> i
> missing your point ? (My apologies if this sounds dumb)
>
> Rick
>
> On Thu, Apr 17, 2008 at 12:09 AM, Wayne Fay <wa...@gmail.com> wrote:
>
> > No, Central does not host this jar, only the pom and the md5/sha1 files.
> >
> > This jar must be downloaded and manually installed into your local
> > repo cache due to Oracle's licensing requirements.
> >
> > Wayne
> >
> > On 4/16/08, Manos Batsis <ma...@geekologue.com> wrote:
> > >
> > > The repo has it [1], here the pom fragment:
> > >
> > >
> > > <groupId>com.oracle</groupId>
> > > <artifactId>ojdbc14</artifactId>
> > > <version>9.0.2.0.0</version>
> > >
> > > [1]
> > > http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
> > >
> > > No idea whats wrong :-/
> > >
> > > Manos
> > >
> > >
> > >
> > >
> > > Ricky wrote:
> > > > Hi,
> > > >
> > > > I am trying to add:
> > > >     *   <dependency>
> > > >            <groupId>com.oracle</groupId>
> > > >            <artifactId>ojdbc14</artifactId>
> > > >            <version>9.0.2.0.0</version>
> > > >        </dependency>*
> > > >
> > > > in my POM xml and i am getting :
> > > >
> > > > *Path to dependency:
> > > >    1)
> > > >
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > > >
> > > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > > >
> > > > from the specified remote repositories:
> > > >  central (http://repo1.maven.org/maven2)
> > > >
> > > >
> > > org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > > Unable to
> > > > download the artifact from any repository
> > > >
> > > > Try downloading the file manually from:
> > > >
> > >
> http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
> > > >
> > > > Then, install it using the command:
> > > >    mvn install:install-file -DgroupId=com.oracle
> -DartifactId=ojdbc14
> > > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> > > >
> > > > Alternatively, if you host your own repository you can deploy the
> file
> > > > there:
> > > >    mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
> > > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> > > > -DrepositoryId=[id]
> > > >
> > > > Path to dependency:
> > > >    1)
> > > >
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > > >
> > > >
> > > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > > >
> > > > from the specified remote repositories:
> > > >  central (http://repo1.maven.org/maven2)*<
> http://repo1.maven.org/maven2%29*>
> > > >
> > > >
> > > > *Am i doing something wrong ?*
> > > >
> > > >
> > > >
> > > > Regards
> > > > Vyas, Anirudh
> > > > || ॐ ||
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>

Re: Oracle drivers dependencies

Posted by Ricky <ri...@gmail.com>.
Hey Wayne,

I copied the jars manually to the m2 repository cache in path *
.m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*

But when i run *mvn clean install*, it still says artifact is missing. Am i
missing your point ? (My apologies if this sounds dumb)

Rick

On Thu, Apr 17, 2008 at 12:09 AM, Wayne Fay <wa...@gmail.com> wrote:

> No, Central does not host this jar, only the pom and the md5/sha1 files.
>
> This jar must be downloaded and manually installed into your local
> repo cache due to Oracle's licensing requirements.
>
> Wayne
>
> On 4/16/08, Manos Batsis <ma...@geekologue.com> wrote:
> >
> > The repo has it [1], here the pom fragment:
> >
> >
> > <groupId>com.oracle</groupId>
> > <artifactId>ojdbc14</artifactId>
> > <version>9.0.2.0.0</version>
> >
> > [1]
> > http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
> >
> > No idea whats wrong :-/
> >
> > Manos
> >
> >
> >
> >
> > Ricky wrote:
> > > Hi,
> > >
> > > I am trying to add:
> > >     *   <dependency>
> > >            <groupId>com.oracle</groupId>
> > >            <artifactId>ojdbc14</artifactId>
> > >            <version>9.0.2.0.0</version>
> > >        </dependency>*
> > >
> > > in my POM xml and i am getting :
> > >
> > > *Path to dependency:
> > >    1)
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > >
> > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2)
> > >
> > >
> > org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > Unable to
> > > download the artifact from any repository
> > >
> > > Try downloading the file manually from:
> > >
> > http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
> > >
> > > Then, install it using the command:
> > >    mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
> > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> > >
> > > Alternatively, if you host your own repository you can deploy the file
> > > there:
> > >    mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
> > > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> > > -DrepositoryId=[id]
> > >
> > > Path to dependency:
> > >    1)
> > >
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> > >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> > >
> > >
> > >  com.oracle:ojdbc14:jar:9.0.2.0.0
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2)*<http://repo1.maven.org/maven2%29*>
> > >
> > >
> > > *Am i doing something wrong ?*
> > >
> > >
> > >
> > > Regards
> > > Vyas, Anirudh
> > > || ॐ ||
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Re: Oracle drivers dependencies

Posted by Wayne Fay <wa...@gmail.com>.
No, Central does not host this jar, only the pom and the md5/sha1 files.

This jar must be downloaded and manually installed into your local
repo cache due to Oracle's licensing requirements.

Wayne

On 4/16/08, Manos Batsis <ma...@geekologue.com> wrote:
>
> The repo has it [1], here the pom fragment:
>
>
> <groupId>com.oracle</groupId>
> <artifactId>ojdbc14</artifactId>
> <version>9.0.2.0.0</version>
>
> [1]
> http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
>
> No idea whats wrong :-/
>
> Manos
>
>
>
>
> Ricky wrote:
> > Hi,
> >
> > I am trying to add:
> >     *   <dependency>
> >            <groupId>com.oracle</groupId>
> >            <artifactId>ojdbc14</artifactId>
> >            <version>9.0.2.0.0</version>
> >        </dependency>*
> >
> > in my POM xml and i am getting :
> >
> > *Path to dependency:
> >    1)
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> >
> >  com.oracle:ojdbc14:jar:9.0.2.0.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >
> >
> org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable to
> > download the artifact from any repository
> >
> > Try downloading the file manually from:
> >
> http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
> >
> > Then, install it using the command:
> >    mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
> > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> >
> > Alternatively, if you host your own repository you can deploy the file
> > there:
> >    mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
> > -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> > -DrepositoryId=[id]
> >
> > Path to dependency:
> >    1)
> >
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
> >    2) com.oracle:ojdbc14:jar:9.0.2.0.0
> >
> >
> >  com.oracle:ojdbc14:jar:9.0.2.0.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)*
> >
> >
> > *Am i doing something wrong ?*
> >
> >
> >
> > Regards
> > Vyas, Anirudh
> > || ॐ ||
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Oracle drivers dependencies

Posted by Manos Batsis <ma...@geekologue.com>.
The repo has it [1], here the pom fragment:


<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>9.0.2.0.0</version>

[1] http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/

No idea whats wrong :-/

Manos



Ricky wrote:
> Hi,
> 
> I am trying to add:
>      *   <dependency>
>             <groupId>com.oracle</groupId>
>             <artifactId>ojdbc14</artifactId>
>             <version>9.0.2.0.0</version>
>         </dependency>*
> 
> in my POM xml and i am getting :
> 
> *Path to dependency:
>     1)
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
>     2) com.oracle:ojdbc14:jar:9.0.2.0.0
> 
>   com.oracle:ojdbc14:jar:9.0.2.0.0
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to
> download the artifact from any repository
> 
> Try downloading the file manually from:
>     http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
> 
> Then, install it using the command:
>     mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
> -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
> 
> Alternatively, if you host your own repository you can deploy the file
> there:
>     mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
> -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
> 
> Path to dependency:
>     1)
> PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
>     2) com.oracle:ojdbc14:jar:9.0.2.0.0
> 
> 
>   com.oracle:ojdbc14:jar:9.0.2.0.0
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)*
> 
> 
> *Am i doing something wrong ?*
> 
> 
> 
> Regards
> Vyas, Anirudh
> || ॐ ||


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org