You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Kitching <sk...@apache.org> on 2006/04/19 12:47:16 UTC

RE: Dependency Management, Prioritize Repositories - Internal, Central, etc.

On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote:
> Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM:
> 
> > Problem:
> > I have a custom JAR (built by our team) installed in my local
> > repository, and yet every time I do a build, Maven attempts
> > to download
> > it from Central (iBiblio) before realizing it's located in my local
> > repository. I would like to prevent Maven from attempting to download
> > this JAR from Central every time I do a build.
> > 
> > Existing Solution:
> > Has anyone successfully dealt with this problem? I've seen several
> > threads on this topic without any resolution. I do not want
> > to override
> > Central or disable downloading of JAR's from Central.
> > 
> > Potential Solution:
> > I would like to be able to specify the order in which Maven looks up
> > repositories. I would like for it to first look in my local
> > repository, then at a shared (corporate) repository, and finally go
> > out to the Central (iBiblio) repository. 
> 
> This will not really help, for SNAPSHOTs Maven has to look in every repository.

True, for SNAPSHOT files.

If you're getting this problem with something other than SNAPSHOT files,
then did you use -DgeneratePom=true when installing the files? 

I've been working on doing exactly this kind of thing today, and it's
working fine. However if there is no pom file next to the jarfile in the
local repository, then maven tries to fetch the *pom* (and only the pom)
from the central repository, then gets the jar from the local one.
Putting a pom in the local repository fixes that.

Regards,

Simon



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


Re: Dependency Management, Prioritize Repositories - Internal, Central, etc.

Posted by Wayne Fay <wa...@gmail.com>.
Shoot... I've got a bunch of poms to go generate, or jars to reinstall. ;-)

Wayne

On 4/19/06, Simon Kitching <sk...@apache.org> wrote:
> On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote:
> > Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM:
> >
> > > Problem:
> > > I have a custom JAR (built by our team) installed in my local
> > > repository, and yet every time I do a build, Maven attempts
> > > to download
> > > it from Central (iBiblio) before realizing it's located in my local
> > > repository. I would like to prevent Maven from attempting to download
> > > this JAR from Central every time I do a build.
> > >
> > > Existing Solution:
> > > Has anyone successfully dealt with this problem? I've seen several
> > > threads on this topic without any resolution. I do not want
> > > to override
> > > Central or disable downloading of JAR's from Central.
> > >
> > > Potential Solution:
> > > I would like to be able to specify the order in which Maven looks up
> > > repositories. I would like for it to first look in my local
> > > repository, then at a shared (corporate) repository, and finally go
> > > out to the Central (iBiblio) repository.
> >
> > This will not really help, for SNAPSHOTs Maven has to look in every repository.
>
> True, for SNAPSHOT files.
>
> If you're getting this problem with something other than SNAPSHOT files,
> then did you use -DgeneratePom=true when installing the files?
>
> I've been working on doing exactly this kind of thing today, and it's
> working fine. However if there is no pom file next to the jarfile in the
> local repository, then maven tries to fetch the *pom* (and only the pom)
> from the central repository, then gets the jar from the local one.
> Putting a pom in the local repository fixes that.
>
> Regards,
>
> Simon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>