You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Ross, Ed" <Ed...@crowncastle.com> on 2008/02/06 21:06:48 UTC

How to install a non-maven jar to the repository

After reading the docs, I still don't know how to do a simple task like
intall a jar that is not found in the maven repositor (e.g.
weblogic.jar).
 
Only solution I've found so far is to create my own maven repository,
do a mave:install file then do a ivy:install.
 
Any example would be appreciated.
 
thx

Re: How to install a non-maven jar to the repository

Posted by Xavier Hanin <xa...@gmail.com>.
On Feb 6, 2008 9:06 PM, Ross, Ed <Ed...@crowncastle.com> wrote:

> After reading the docs, I still don't know how to do a simple task like
> intall a jar that is not found in the maven repositor (e.g.
> weblogic.jar).
>
> Only solution I've found so far is to create my own maven repository,
> do a mave:install file then do a ivy:install.
>
> Any example would be appreciated.

I suggest a mere file copy, i.e. put the jar directly where Ivy expects it
instead of in your own maven repo. Metadata (i.e. ivy files) is optional in
Ivy (at least by default), so a simple jar with the right name at the right
location is enough. To know the location call a first ivy:resolve and check
the console: Ivy will tell where it tried to find the artifact.

Xavier


>
> thx
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/