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 jeff <je...@yahoo.com> on 2007/04/11 20:31:00 UTC

something like mvn install plugin?

we have a large ant-based project that is presently just referencing a shared directory for it's dependencies. we'd like use ivy to better manage those dependencies.

some of our dependencies are already in standard repos, but some of them aren't. we just have a JAR file that we did not build and cannot build. so i was looking for something like "mvn install:install-file ..." to "publish" the JAR into the ivy local cache. eventually these dependencies will be in a well-defined maven repo, but that is a lot of overhead just to do a proof of concept w/ ivy ...

i've tried quite a few variations on this and i can't seem to find anything in ivy that will let me do this easily. i've attached two files, publish.xml and dsame-ivy.xml that are supposed to be doing the task. when i run it, i get:

publish:
[ivy:configure] Loading jar:file:/home/jtb/.ivy/jars/ivy.jar!/fr/jayasoft/ivy/ivy.properties
[ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::
[ivy:configure] :: configuring :: file = /home/jtb/src/ps.trunk/buildutil/dsame-ivy.xml
[ivy:publish] :: publishing :: [ com.sun.dsame | sdk ]

BUILD FAILED
/home/jtb/src/ps.trunk/buildutil/publish.xml:16: impossible to publish artifacts for [ com.sun.dsame | sdk | 7.0 ]: java.lang.IllegalArgumentException: unknown resolver local

any ideas?

        
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Re: SVN setup in structure of an Ivy Repo...

Posted by Steve Loughran <st...@apache.org>.
Ken Gentle wrote:
> Steve, could you say a little more about this structure?  I'm intrigued, 
> to say the least.

> Do you have IVY hitting the SVN Repo?  Or does Ivy get pointed at a 
> "checked-out" view of the SVN directory?

we have ivy hitting the filesystem view. Everyone who checks stuff out, 
gets the files. The entry in ivyconf.xml looks like this

   <property name="maven2.pattern"
       value="[organisation]/[module]/[revision]/[module]-[revision]" />
   <property name="maven2.pattern.ext"
       value="${maven2.pattern}.[ext]" />

...

     <filesystem name="team">
       ivys="true" artifacts="true"
       m2compatible="true" >
       <artifact 
pattern="${root.dir}/antbuild/repository/${maven2.pattern.ext}"/>
       <ivy 
pattern="${root.dir}/antbuild/repository/${maven2.pattern}.xml"/>
     </filesystem>

Re: Re : SVN setup in structure of an Ivy Repo...

Posted by Jing Xue <ji...@digizenstudio.com>.
Quoting Ken Gentle <j....@acm.org>:

> Steve, could you say a little more about this structure?  I'm
> intrigued, to say the least.
>
> Do you have IVY hitting the SVN Repo?  Or does Ivy get pointed at a
> "checked-out" view of the SVN directory?

Ken, in case you want to look at a real world example, Spring Webflow  
uses an approach similar to what Steve described. Its source package  
comes with all the dependencies organized into a local file system  
repo, and the next tier of the resolvers pointing to an svn url.

HTH.
-- 
Jing Xue



Re : SVN setup in structure of an Ivy Repo...

Posted by Ken Gentle <j....@acm.org>.
Steve, could you say a little more about this structure?  I'm 
intrigued, to say the least.

Do you have IVY hitting the SVN Repo?  Or does Ivy get pointed at a 
"checked-out" view of the SVN directory?

	Ken



Re: something like mvn install plugin?

Posted by jeff <je...@yahoo.com>.
thanks steve. this was only an issue w/ testing. if we go live, then we will have something similar, except the repo is a maven or maven2 dir structure.

to get around this, i just used "mvn install..." and then configured Ivy to look into $HOME/.m2/repository to find the artifacts.

Steve Loughran <st...@apache.org> wrote: jeff wrote:
> we have a large ant-based project that is presently just referencing a 
> shared directory for it's dependencies. we'd like use ivy to better 
> manage those dependencies.
> 
> some of our dependencies are already in standard repos, but some of them 
> aren't. we just have a JAR file that we did not build and cannot build. 
> so i was looking for something like "mvn install:install-file ..." to 
> "publish" the JAR into the ivy local cache. eventually these 
> dependencies will be in a well-defined maven repo, but that is a lot of 
> overhead just to do a proof of concept w/ ivy ...
> 

We have a bit of our SVN repository set up in the structure of an Ivy 
repo...the conf file is set to read from there ahead of the remote 
repositories; this gives us ivy integration without hosting a live, 
public repository




       
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: something like mvn install plugin?

Posted by Steve Loughran <st...@apache.org>.
jeff wrote:
> we have a large ant-based project that is presently just referencing a 
> shared directory for it's dependencies. we'd like use ivy to better 
> manage those dependencies.
> 
> some of our dependencies are already in standard repos, but some of them 
> aren't. we just have a JAR file that we did not build and cannot build. 
> so i was looking for something like "mvn install:install-file ..." to 
> "publish" the JAR into the ivy local cache. eventually these 
> dependencies will be in a well-defined maven repo, but that is a lot of 
> overhead just to do a proof of concept w/ ivy ...
> 

We have a bit of our SVN repository set up in the structure of an Ivy 
repo...the conf file is set to read from there ahead of the remote 
repositories; this gives us ivy integration without hosting a live, 
public repository



RE: something like mvn install plugin?

Posted by Gilles Scokart <gs...@gmail.com>.
I think there is an option to install a module with hall its dependencies.
If you configure correctly your resolver to use your ivy.xml, it might maybe
work.

Gilles 


> -----Original Message-----
> From: jeff [mailto:jeffrey.blattman@yahoo.com]
> Sent: lundi 16 avril 2007 16:02
> To: ivy-user@incubator.apache.org
> Subject: RE: something like mvn install plugin?
> 
> hi gilles,
> 
> yes, eventually i found a way to do what i wanted w/ ivy:install. the only
> thing i didn't like about this solution is that i had to call out the
> dependencies in the build file, instead of an ivy.xml file.
> 
> Gilles Scokart <gs...@gmail.com> wrote: Did you tried the ivy:install
> task?
> 
> Gilles
> 
> ________________________________________
> From: jeff [mailto:jeffrey.blattman@yahoo.com]
> Sent: mercredi 11 avril 2007 20:31
> To: ivy-user@incubator.apache.org
> Subject: something like mvn install plugin?
> 
> we have a large ant-based project that is presently just referencing a
> shared directory for it's dependencies. we'd like use ivy to better manage
> those dependencies.
> 
> some of our dependencies are already in standard repos, but some of them
> aren't. we just have a JAR file that we did not build and cannot build. so
> i
> was looking for something like "mvn install:install-file ..." to "publish"
> the JAR into the ivy local cache. eventually these dependencies will be in
> a
> well-defined maven repo, but that is a lot of overhead just to do a proof
> of
> concept w/ ivy ...
> 
> i've tried quite a few variations on this and i can't seem to find
> anything
> in ivy that will let me do this easily. i've attached two files,
> publish.xml
> and dsame-ivy.xml that are supposed to be doing the task. when i run it, i
> get:
> 
> publish:
> [ivy:configure] Loading
> jar:file:/home/jtb/.ivy/jars/ivy.jar!/fr/jayasoft/ivy/ivy.properties
> [ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/
> ::
> [ivy:configure] :: configuring :: file =
> /home/jtb/src/ps.trunk/buildutil/dsame-ivy.xml
> [ivy:publish] :: publishing :: [ com.sun.dsame | sdk ]
> 
> BUILD FAILED
> /home/jtb/src/ps.trunk/buildutil/publish.xml:16: impossible to publish
> artifacts for [ com.sun.dsame | sdk | 7.0 ]:
> java.lang.IllegalArgumentException: unknown resolver local
> 
> any ideas?
> 
> ________________________________________
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> 
> 
> 
> 
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
>  Check outnew cars at Yahoo! Autos.


RE: something like mvn install plugin?

Posted by jeff <je...@yahoo.com>.
hi gilles,

yes, eventually i found a way to do what i wanted w/ ivy:install. the only thing i didn't like about this solution is that i had to call out the dependencies in the build file, instead of an ivy.xml file. 

Gilles Scokart <gs...@gmail.com> wrote: Did you tried the ivy:install task?  

Gilles

________________________________________
From: jeff [mailto:jeffrey.blattman@yahoo.com] 
Sent: mercredi 11 avril 2007 20:31
To: ivy-user@incubator.apache.org
Subject: something like mvn install plugin?

we have a large ant-based project that is presently just referencing a
shared directory for it's dependencies. we'd like use ivy to better manage
those dependencies.

some of our dependencies are already in standard repos, but some of them
aren't. we just have a JAR file that we did not build and cannot build. so i
was looking for something like "mvn install:install-file ..." to "publish"
the JAR into the ivy local cache. eventually these dependencies will be in a
well-defined maven repo, but that is a lot of overhead just to do a proof of
concept w/ ivy ...

i've tried quite a few variations on this and i can't seem to find anything
in ivy that will let me do this easily. i've attached two files, publish.xml
and dsame-ivy.xml that are supposed to be doing the task. when i run it, i
get:

publish:
[ivy:configure] Loading
jar:file:/home/jtb/.ivy/jars/ivy.jar!/fr/jayasoft/ivy/ivy.properties
[ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::
[ivy:configure] :: configuring :: file =
/home/jtb/src/ps.trunk/buildutil/dsame-ivy.xml
[ivy:publish] :: publishing :: [ com.sun.dsame | sdk ]

BUILD FAILED
/home/jtb/src/ps.trunk/buildutil/publish.xml:16: impossible to publish
artifacts for [ com.sun.dsame | sdk | 7.0 ]:
java.lang.IllegalArgumentException: unknown resolver local

any ideas?
  
________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. 



       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

RE: something like mvn install plugin?

Posted by Gilles Scokart <gs...@gmail.com>.
Did you tried the ivy:install task?  

Gilles

________________________________________
From: jeff [mailto:jeffrey.blattman@yahoo.com] 
Sent: mercredi 11 avril 2007 20:31
To: ivy-user@incubator.apache.org
Subject: something like mvn install plugin?

we have a large ant-based project that is presently just referencing a
shared directory for it's dependencies. we'd like use ivy to better manage
those dependencies.

some of our dependencies are already in standard repos, but some of them
aren't. we just have a JAR file that we did not build and cannot build. so i
was looking for something like "mvn install:install-file ..." to "publish"
the JAR into the ivy local cache. eventually these dependencies will be in a
well-defined maven repo, but that is a lot of overhead just to do a proof of
concept w/ ivy ...

i've tried quite a few variations on this and i can't seem to find anything
in ivy that will let me do this easily. i've attached two files, publish.xml
and dsame-ivy.xml that are supposed to be doing the task. when i run it, i
get:

publish:
[ivy:configure] Loading
jar:file:/home/jtb/.ivy/jars/ivy.jar!/fr/jayasoft/ivy/ivy.properties
[ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::
[ivy:configure] :: configuring :: file =
/home/jtb/src/ps.trunk/buildutil/dsame-ivy.xml
[ivy:publish] :: publishing :: [ com.sun.dsame | sdk ]

BUILD FAILED
/home/jtb/src/ps.trunk/buildutil/publish.xml:16: impossible to publish
artifacts for [ com.sun.dsame | sdk | 7.0 ]:
java.lang.IllegalArgumentException: unknown resolver local

any ideas?
  
________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.