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 Richard Hauswald <ri...@googlemail.com> on 2009/06/12 21:29:24 UTC

IVY ROCKS!!!

Hey to all the guys (and girls?)  who develeped ivy!
You did a great job! Ivy is just that flexible, simple and powerful.
Amazing. After 3 after work evenings of reading, testing, crying and
pizza I understood the stuff I need to resolve my deps to a lib,
lib-src, lib-test and lib-test-src folder using two configs runtime
and test. The code to do this is simple and small. Really great tool!
Thanks again,
Richard

RE: IVY ROCKS!!!

Posted by James Mochel <jm...@feedroom.com>.
C,

While I don't have the time right now to answer the question in detail I do have some example code that should make it clear very easily:

I have a project on SourceForge that is just starting out that uses a very simple set of build scripts AND Ivy to do what you want to do.

You want to go to : http://saltation.git.sourceforge.net/ and look in the common.xml file under the common-build folder.

The targets you want to look at are:

Staging, Sharing and Release

Stage - Publish the build artifacts for local (i.e. machine local) usage.
Share - Publish the build artifacts for team wide usage
Release - Publish the build artifacts for general (i.e. network) usage.


And the repositories are found in (of course):

ivy-settings.xml


I hope that helps and if it doesn't completely clear things up , post to this forum again and I will respond.

Good Luck,

Jim
-----Original Message-----
From: cshamis [mailto:cshamis@gmail.com] 
Sent: Friday, June 19, 2009 10:56 AM
To: ivy-user@ant.apache.org
Subject: Re: IVY ROCKS!!!


Richard: (et al.)

I'm currently at the reading, crying and testing phase and would very much
like to move to the pizza and understanding stage.  Can you offer any
suggestions, pointers, examples, anything at all that might help me get from
A -> B.

I've got ivy working with the remote central repository (yay!), but I can't
seem to figure out how to setup a "shared" network repository to host
modules that aren't in the central repository.  My project needs to place
modules that *we* write into a shared repository... but I keep hitting brick
walls on how to do this.  I keep finding tutorials that keep saying "yes,
ivy can do that!" but then never tell you *how*.  

I know that ivy can use maven repositories, and I was able to use maven to
create a filesystem based repository that I hosted out on a network drive...
which would be fine for our needs.  --But do you think I'd be able to figure
out how to customize a simply ivy resolver to use that file based
repository?  Seems trivial... so trivial in fact, that I guess nobody wants
to talk about how to do it.  :-/  Arrgh!

Maybe I'm going about this wrong.  Here are my needs.
1.  I need a way to resolve our own jars (project1.jar, subproject3c.jar,
subsubproject18f.jar, etc.)
2.  I need a way to resolve "standard" jars.  (commons-lang, hibernate,
log4j, etc.)

I *think* what I want is a shared repository, that will be "populated" by
our automated build system (hudson) every time we run a new build.  Every
time we make a new jar, it goes into the repository, and can be asked for by
other parts of the project.  The 3rd party jars would probably not have to
change very often.  

I'm starting to get discouraged.  Can anyone share their successes?  

-C.
-- 
View this message in context: http://www.nabble.com/IVY-ROCKS%21%21%21-tp24004864p24113094.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: IVY ROCKS!!!

Posted by Christoffer Soop <li...@soop.se>.
You should look into setting up a repository server like

	http://archiva.apache.org/
	http://continuum.apache.org/

These will not only work as repositories but also proxies/caches.

A simpler option is to set up Apache with mod_dav and publish using webdav.

Cheers!

Chris	

cshamis skrev:
> Richard: (et al.)
> 
> I'm currently at the reading, crying and testing phase and would very much
> like to move to the pizza and understanding stage.  Can you offer any
> suggestions, pointers, examples, anything at all that might help me get from
> A -> B.
> 
> I've got ivy working with the remote central repository (yay!), but I can't
> seem to figure out how to setup a "shared" network repository to host
> modules that aren't in the central repository.  My project needs to place
> modules that *we* write into a shared repository... but I keep hitting brick
> walls on how to do this.  I keep finding tutorials that keep saying "yes,
> ivy can do that!" but then never tell you *how*.  
> 
> I know that ivy can use maven repositories, and I was able to use maven to
> create a filesystem based repository that I hosted out on a network drive...
> which would be fine for our needs.  --But do you think I'd be able to figure
> out how to customize a simply ivy resolver to use that file based
> repository?  Seems trivial... so trivial in fact, that I guess nobody wants
> to talk about how to do it.  :-/  Arrgh!
> 
> Maybe I'm going about this wrong.  Here are my needs.
> 1.  I need a way to resolve our own jars (project1.jar, subproject3c.jar,
> subsubproject18f.jar, etc.)
> 2.  I need a way to resolve "standard" jars.  (commons-lang, hibernate,
> log4j, etc.)
> 
> I *think* what I want is a shared repository, that will be "populated" by
> our automated build system (hudson) every time we run a new build.  Every
> time we make a new jar, it goes into the repository, and can be asked for by
> other parts of the project.  The 3rd party jars would probably not have to
> change very often.  
> 
> I'm starting to get discouraged.  Can anyone share their successes?  
> 
> -C.


RE: IVY ROCKS!!!

Posted by Giridharan Kesavan <gk...@yahoo-inc.com>.
I 've a setup of nexus repo. I couldn't find an easy way to publish pom files to the nexus repo using ivy:publish task.
Where you able to publish artifacts + poms to the nexus repo using ivy:publish?

2 QA:

I was able to publish the ivy file and the artifact to the maven repo.
But when I resolve the artifact in other project it fails resolving the transient dependencies saying configuration not found.. 
I 've a conf like this conf="common->common" ie my common configuration depends on the common configuration of the dependency.. 
It fails saying configuration common required by common conf doesn not exit...

Could you throw some lights here?

Thanks,
Giri


-----Original Message-----
From: James Mochel [mailto:jmochel@feedroom.com] 
Sent: Friday, June 19, 2009 8:51 PM
To: ivy-user@ant.apache.org
Subject: RE: IVY ROCKS!!!

One other thought. I have really good results using a Maven repository manager in house called Nexus by Sonatype. It acts as a gateway to public repos and you can run it as the team repository so you are only going to ONE repository in your ivy-settings.xml 

It is trivial to set up.

- Jim

-----Original Message-----
From: cshamis [mailto:cshamis@gmail.com] 
Sent: Friday, June 19, 2009 10:56 AM
To: ivy-user@ant.apache.org
Subject: Re: IVY ROCKS!!!


Richard: (et al.)

I'm currently at the reading, crying and testing phase and would very much
like to move to the pizza and understanding stage.  Can you offer any
suggestions, pointers, examples, anything at all that might help me get from
A -> B.

I've got ivy working with the remote central repository (yay!), but I can't
seem to figure out how to setup a "shared" network repository to host
modules that aren't in the central repository.  My project needs to place
modules that *we* write into a shared repository... but I keep hitting brick
walls on how to do this.  I keep finding tutorials that keep saying "yes,
ivy can do that!" but then never tell you *how*.  

I know that ivy can use maven repositories, and I was able to use maven to
create a filesystem based repository that I hosted out on a network drive...
which would be fine for our needs.  --But do you think I'd be able to figure
out how to customize a simply ivy resolver to use that file based
repository?  Seems trivial... so trivial in fact, that I guess nobody wants
to talk about how to do it.  :-/  Arrgh!

Maybe I'm going about this wrong.  Here are my needs.
1.  I need a way to resolve our own jars (project1.jar, subproject3c.jar,
subsubproject18f.jar, etc.)
2.  I need a way to resolve "standard" jars.  (commons-lang, hibernate,
log4j, etc.)

I *think* what I want is a shared repository, that will be "populated" by
our automated build system (hudson) every time we run a new build.  Every
time we make a new jar, it goes into the repository, and can be asked for by
other parts of the project.  The 3rd party jars would probably not have to
change very often.  

I'm starting to get discouraged.  Can anyone share their successes?  

-C.
-- 
View this message in context: http://www.nabble.com/IVY-ROCKS%21%21%21-tp24004864p24113094.html
Sent from the ivy-user mailing list archive at Nabble.com.


RE: IVY ROCKS!!!

Posted by James Mochel <jm...@feedroom.com>.
One other thought. I have really good results using a Maven repository manager in house called Nexus by Sonatype. It acts as a gateway to public repos and you can run it as the team repository so you are only going to ONE repository in your ivy-settings.xml 

It is trivial to set up.

- Jim

-----Original Message-----
From: cshamis [mailto:cshamis@gmail.com] 
Sent: Friday, June 19, 2009 10:56 AM
To: ivy-user@ant.apache.org
Subject: Re: IVY ROCKS!!!


Richard: (et al.)

I'm currently at the reading, crying and testing phase and would very much
like to move to the pizza and understanding stage.  Can you offer any
suggestions, pointers, examples, anything at all that might help me get from
A -> B.

I've got ivy working with the remote central repository (yay!), but I can't
seem to figure out how to setup a "shared" network repository to host
modules that aren't in the central repository.  My project needs to place
modules that *we* write into a shared repository... but I keep hitting brick
walls on how to do this.  I keep finding tutorials that keep saying "yes,
ivy can do that!" but then never tell you *how*.  

I know that ivy can use maven repositories, and I was able to use maven to
create a filesystem based repository that I hosted out on a network drive...
which would be fine for our needs.  --But do you think I'd be able to figure
out how to customize a simply ivy resolver to use that file based
repository?  Seems trivial... so trivial in fact, that I guess nobody wants
to talk about how to do it.  :-/  Arrgh!

Maybe I'm going about this wrong.  Here are my needs.
1.  I need a way to resolve our own jars (project1.jar, subproject3c.jar,
subsubproject18f.jar, etc.)
2.  I need a way to resolve "standard" jars.  (commons-lang, hibernate,
log4j, etc.)

I *think* what I want is a shared repository, that will be "populated" by
our automated build system (hudson) every time we run a new build.  Every
time we make a new jar, it goes into the repository, and can be asked for by
other parts of the project.  The 3rd party jars would probably not have to
change very often.  

I'm starting to get discouraged.  Can anyone share their successes?  

-C.
-- 
View this message in context: http://www.nabble.com/IVY-ROCKS%21%21%21-tp24004864p24113094.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: IVY ROCKS!!!

Posted by cshamis <cs...@gmail.com>.
Richard: (et al.)

I'm currently at the reading, crying and testing phase and would very much
like to move to the pizza and understanding stage.  Can you offer any
suggestions, pointers, examples, anything at all that might help me get from
A -> B.

I've got ivy working with the remote central repository (yay!), but I can't
seem to figure out how to setup a "shared" network repository to host
modules that aren't in the central repository.  My project needs to place
modules that *we* write into a shared repository... but I keep hitting brick
walls on how to do this.  I keep finding tutorials that keep saying "yes,
ivy can do that!" but then never tell you *how*.  

I know that ivy can use maven repositories, and I was able to use maven to
create a filesystem based repository that I hosted out on a network drive...
which would be fine for our needs.  --But do you think I'd be able to figure
out how to customize a simply ivy resolver to use that file based
repository?  Seems trivial... so trivial in fact, that I guess nobody wants
to talk about how to do it.  :-/  Arrgh!

Maybe I'm going about this wrong.  Here are my needs.
1.  I need a way to resolve our own jars (project1.jar, subproject3c.jar,
subsubproject18f.jar, etc.)
2.  I need a way to resolve "standard" jars.  (commons-lang, hibernate,
log4j, etc.)

I *think* what I want is a shared repository, that will be "populated" by
our automated build system (hudson) every time we run a new build.  Every
time we make a new jar, it goes into the repository, and can be asked for by
other parts of the project.  The 3rd party jars would probably not have to
change very often.  

I'm starting to get discouraged.  Can anyone share their successes?  

-C.
-- 
View this message in context: http://www.nabble.com/IVY-ROCKS%21%21%21-tp24004864p24113094.html
Sent from the ivy-user mailing list archive at Nabble.com.


RE: IVY ROCKS!!!

Posted by Georges Labrèche <gl...@stream57.com>.
Kudos the Ivy team!

-----Original Message-----
From: Sanders, Charles [mailto:csanders@hoovers.com] 
Sent: Friday, June 12, 2009 3:38 PM
To: ivy-user@ant.apache.org; ivy-user@ant.apache.org
Subject: RE: IVY ROCKS!!!

I agree, and also want to thank the team :).

Thanks,
Charles Sanders
512.380.4730
Hoovers.com





-----Original Message-----
From: Richard Hauswald [mailto:richard.hauswald@googlemail.com]
Sent: Fri 6/12/2009 2:29 PM
To: ivy-user@ant.apache.org
Subject: IVY ROCKS!!!
 
Hey to all the guys (and girls?)  who develeped ivy!
You did a great job! Ivy is just that flexible, simple and powerful.
Amazing. After 3 after work evenings of reading, testing, crying and
pizza I understood the stuff I need to resolve my deps to a lib,
lib-src, lib-test and lib-test-src folder using two configs runtime
and test. The code to do this is simple and small. Really great tool!
Thanks again,
Richard


RE: IVY ROCKS!!!

Posted by "Sanders, Charles" <cs...@hoovers.com>.
I agree, and also want to thank the team :).

Thanks,
Charles Sanders
512.380.4730
Hoovers.com





-----Original Message-----
From: Richard Hauswald [mailto:richard.hauswald@googlemail.com]
Sent: Fri 6/12/2009 2:29 PM
To: ivy-user@ant.apache.org
Subject: IVY ROCKS!!!
 
Hey to all the guys (and girls?)  who develeped ivy!
You did a great job! Ivy is just that flexible, simple and powerful.
Amazing. After 3 after work evenings of reading, testing, crying and
pizza I understood the stuff I need to resolve my deps to a lib,
lib-src, lib-test and lib-test-src folder using two configs runtime
and test. The code to do this is simple and small. Really great tool!
Thanks again,
Richard