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 Gareth Collins <ga...@hotmail.com> on 2011/04/13 22:53:44 UTC

Re: How to add a complex project such as Spring or Hibernate to an ivy private Repository?

Why are you trying to build an ivy file for hibernate? The latest versions
of hibernate are in the red hat/jboss maven repository here:

http://repository.jboss.org/nexus/content/groups/public-jboss/

When you import hibernate into your own ivy repository (you can
 reuse the build.xml in the build-a-ivy-repository example),
the pom.xml is converted to an ivy.xml file.

Note if you need to import a lot of libraries from maven, you may need to
search
across multiple repositories:

- Netty/JBoss (above) - projects sponsored by Red Hat
- Java/Oracle (http://download.java.net/maven/2/) - for J2EE jars (such as
mail) because the Oracle license bars the other maven repositories from
distributing the jars
- Apache nightly
(https://repository.apache.org/content/repositories/snapshots/) - if you
need to work off nightly apache code because a feature you require hasn't
been released yet.
- Jetty (http://oss.sonatype.org/content/groups/jetty/) - if you cannot find
a specific jetty jar version in the main maven repository (most likely not
necessary)
- Maven main (http://repo1.maven.org/maven2/) - everything else.

Hope this is helpful.

regards,
Gareth





Adib-5 wrote:
> 
> Hi,
> 
> I am trying to figure out how to add a complex project such as
> hibernate to a private ivy repository. I am starting with a
> hibernate.zip file downloaded from hibernate.org and it contains
> hibernate3.jar and the jpa jar should i be creating a single ivy.xml
> for all or hibernate in the repo with multiple configuration or should
> I be creating multiple modules one module for jpa api and one module
> for the hibernate3.jar ... etc.
> 
> In the case of spring should be creating a single organization called
> springframework.org with multiple modules one module for each spring
> part or should be creating a single module called springframework and
> add all the various .jar files to it.
> 
> Any advice on the ivy way is greatly appreciated. I know that ivy can
> use a maven repo but my goal is not create a maven repo, i want to
> create an ivy repo optimized for ivy. What are are the differences
> between an ivy repo and a maven repo?
> 
> Cheers
> Adib
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-add-a-complex-project-such-as-Spring-or-Hibernate-to-an-ivy-private-Repository--tp31085266p31391845.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: How to add a complex project such as Spring or Hibernate to an ivy private Repository?

Posted by Andre-John Mas <aj...@sympatico.ca>.
On 14-Apr-2011, at 10:06, Archie Cobbs wrote:
> 
> Nothing stops you from using Ivy RoundUp in addition to other maven
> repositories, it's not an either/or choice.
> 
> Regarding control, yes it's not under your control, but neither is the maven
> repository. What you control is how you configure your ivy clients, your
> private repository, etc. With ivy, control is supposed to be applied at the
> settings level, not the repository level. Maven doesn't give you as much
> choice in this regard.

Also, while Ivy Roundup may not be under your control, nothing is stopping you
from forking it and using it at the basis for your own internal repository - though
it is always nice to contribute back to the project that made your life easier.
You can also have an internal copy that simply sync once in a while if you
wish to avoid employees having direct access. If you don't have any security
considerations, then using the approach suggested by Archie also makes sense.

An alternative is simply to look at what was already done there and use it for
inspiration.

I had looked at using Maven in the past, but it just felt too much for the basic
needs I had and so simply continued using the regular download & install library
approach. I had some exposure to Ivy, but I wasn't swayed until I following my
usual approach and having to deal with getting all the dependencies used by
Spring and Hibernate. I decided it was time to put that extra time into learning
Ivy to save me from dependency hell.

Andre



Re: How to add a complex project such as Spring or Hibernate to an ivy private Repository?

Posted by Archie Cobbs <ar...@dellroad.org>.
On Thu, Apr 14, 2011 at 12:15 AM, Gareth Collins <gareth_collins@hotmail.com
> wrote:

> I am curious (and I hope this does not sound rude) - what problem are you
> really trying to solve with Ivy Roundup?
>

Ivy RoundUp was created because there wasn't any good repository for ivy
users. Simply piggy-backing ivy off of maven repositories was not considered
a sufficient alternative for these reasons:

   - Lack of precision and inconsistency in dependency specifications
   - Lots of software not contained (or up to date) in maven repo
   - I don't use maven :)

I primarily use ivy because I want a corporate internal repository for all
> our third-party dependencies. Why would I want another external dependency
> not under my control which takes a lot of work to keep up-to-date with new
> releases into maven (I may be misunderstanding, but it appears ivy roundup
> requires hand-coding the ivy files - I just use the autogenerated ones
> without ivy
> namespaces so I can easily correlate my ivy repository jar locations to the
> corresponding maven locations)
> and doesn't solve sun/oracle jar publication issues?
>

Nothing stops you from using Ivy RoundUp in addition to other maven
repositories, it's not an either/or choice.

Regarding control, yes it's not under your control, but neither is the maven
repository. What you control is how you configure your ivy clients, your
private repository, etc. With ivy, control is supposed to be applied at the
settings level, not the repository level. Maven doesn't give you as much
choice in this regard.

Regarding licensing issues, I'm not sure I understand how maven gets around
this. How is it legal to download some JAR with a license requirement and
then put that JAR up on a public web server for the world to download freely
without any license? I agree it's a lot more convenient though :)

-Archie

-- 
Archie L. Cobbs

Re: How to add a complex project such as Spring or Hibernate to an ivy private Repository?

Posted by Gareth Collins <ga...@hotmail.com>.
I am curious (and I hope this does not sound rude) - what problem are you
really trying to solve with Ivy Roundup?

I primarily use ivy because I want a corporate internal repository for all
our third-party dependencies. Why would I want another external dependency
not under my control which takes a lot of work to keep up-to-date with new
releases into maven (I may be misunderstanding, but it appears ivy roundup
requires
hand-coding the ivy files - I just use the autogenerated ones without ivy
namespaces
so I can easily correlate my ivy repository jar locations to the
corresponding maven locations)
and doesn't solve sun/oracle jar publication issues?

regards,
Gareth


Andre-John Mas-4 wrote:
> 
> Also, Ivy Roundup is likely to make your life that much easier. Contribute
> what is missing and you still
> have the option of running it as a clone within your intranet.
> 
> My 5c.
> 
> On 13-Apr-2011, at 16:53, Gareth Collins wrote:
> 
>> 
>> Why are you trying to build an ivy file for hibernate? The latest
>> versions
>> of hibernate are in the red hat/jboss maven repository here:
>> 
>> http://repository.jboss.org/nexus/content/groups/public-jboss/
>> 
>> When you import hibernate into your own ivy repository (you can
>> reuse the build.xml in the build-a-ivy-repository example),
>> the pom.xml is converted to an ivy.xml file.
>> 
>> Note if you need to import a lot of libraries from maven, you may need to
>> search
>> across multiple repositories:
>> 
>> - Netty/JBoss (above) - projects sponsored by Red Hat
>> - Java/Oracle (http://download.java.net/maven/2/) - for J2EE jars (such
>> as
>> mail) because the Oracle license bars the other maven repositories from
>> distributing the jars
>> - Apache nightly
>> (https://repository.apache.org/content/repositories/snapshots/) - if you
>> need to work off nightly apache code because a feature you require hasn't
>> been released yet.
>> - Jetty (http://oss.sonatype.org/content/groups/jetty/) - if you cannot
>> find
>> a specific jetty jar version in the main maven repository (most likely
>> not
>> necessary)
>> - Maven main (http://repo1.maven.org/maven2/) - everything else.
>> 
>> Hope this is helpful.
>> 
>> regards,
>> Gareth
>> 
>> 
>> 
>> 
>> 
>> Adib-5 wrote:
>>> 
>>> Hi,
>>> 
>>> I am trying to figure out how to add a complex project such as
>>> hibernate to a private ivy repository. I am starting with a
>>> hibernate.zip file downloaded from hibernate.org and it contains
>>> hibernate3.jar and the jpa jar should i be creating a single ivy.xml
>>> for all or hibernate in the repo with multiple configuration or should
>>> I be creating multiple modules one module for jpa api and one module
>>> for the hibernate3.jar ... etc.
>>> 
>>> In the case of spring should be creating a single organization called
>>> springframework.org with multiple modules one module for each spring
>>> part or should be creating a single module called springframework and
>>> add all the various .jar files to it.
>>> 
>>> Any advice on the ivy way is greatly appreciated. I know that ivy can
>>> use a maven repo but my goal is not create a maven repo, i want to
>>> create an ivy repo optimized for ivy. What are are the differences
>>> between an ivy repo and a maven repo?
>>> 
>>> Cheers
>>> Adib
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/How-to-add-a-complex-project-such-as-Spring-or-Hibernate-to-an-ivy-private-Repository--tp31085266p31391845.html
>> Sent from the ivy-user mailing list archive at Nabble.com.
>> 
>> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-add-a-complex-project-such-as-Spring-or-Hibernate-to-an-ivy-private-Repository--tp31085266p31393898.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: How to add a complex project such as Spring or Hibernate to an ivy private Repository?

Posted by Andre-John Mas <aj...@sympatico.ca>.
Also, Ivy Roundup is likely to make your life that much easier. Contribute what is missing and you still
have the option of running it as a clone within your intranet.

My 5c.

On 13-Apr-2011, at 16:53, Gareth Collins wrote:

> 
> Why are you trying to build an ivy file for hibernate? The latest versions
> of hibernate are in the red hat/jboss maven repository here:
> 
> http://repository.jboss.org/nexus/content/groups/public-jboss/
> 
> When you import hibernate into your own ivy repository (you can
> reuse the build.xml in the build-a-ivy-repository example),
> the pom.xml is converted to an ivy.xml file.
> 
> Note if you need to import a lot of libraries from maven, you may need to
> search
> across multiple repositories:
> 
> - Netty/JBoss (above) - projects sponsored by Red Hat
> - Java/Oracle (http://download.java.net/maven/2/) - for J2EE jars (such as
> mail) because the Oracle license bars the other maven repositories from
> distributing the jars
> - Apache nightly
> (https://repository.apache.org/content/repositories/snapshots/) - if you
> need to work off nightly apache code because a feature you require hasn't
> been released yet.
> - Jetty (http://oss.sonatype.org/content/groups/jetty/) - if you cannot find
> a specific jetty jar version in the main maven repository (most likely not
> necessary)
> - Maven main (http://repo1.maven.org/maven2/) - everything else.
> 
> Hope this is helpful.
> 
> regards,
> Gareth
> 
> 
> 
> 
> 
> Adib-5 wrote:
>> 
>> Hi,
>> 
>> I am trying to figure out how to add a complex project such as
>> hibernate to a private ivy repository. I am starting with a
>> hibernate.zip file downloaded from hibernate.org and it contains
>> hibernate3.jar and the jpa jar should i be creating a single ivy.xml
>> for all or hibernate in the repo with multiple configuration or should
>> I be creating multiple modules one module for jpa api and one module
>> for the hibernate3.jar ... etc.
>> 
>> In the case of spring should be creating a single organization called
>> springframework.org with multiple modules one module for each spring
>> part or should be creating a single module called springframework and
>> add all the various .jar files to it.
>> 
>> Any advice on the ivy way is greatly appreciated. I know that ivy can
>> use a maven repo but my goal is not create a maven repo, i want to
>> create an ivy repo optimized for ivy. What are are the differences
>> between an ivy repo and a maven repo?
>> 
>> Cheers
>> Adib
>> 
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/How-to-add-a-complex-project-such-as-Spring-or-Hibernate-to-an-ivy-private-Repository--tp31085266p31391845.html
> Sent from the ivy-user mailing list archive at Nabble.com.
> 
>