Re: Mirrors and repositories

2011-07-08 Thread Wendy Smoak
On Fri, Jul 8, 2011 at 3:50 PM, Maven User maven.2.u...@gmail.com wrote:

 I thought I had a good handle on this, but can someone help me fully
 understand the mirrors and repositories settings in settings.xml?

 When one has a repository server running, and there are several urls grouped
 up, why isn't it enough to tell maven where to look via a single mirrors
 stanza?

 Why do I then also have to define an additional repository?

What happens when you don't?  Knowing why you think you need to do it
would help someone explain it.

One reason you might do it is to enable a repository to be searched
for snapshots.  By default, Maven's built-in definition of 'central'
only has releases enabled.  Unless you define another repository
somewhere that has snapshots enabled, Maven will never retrieve any
snapshots.

-- 
Wendy

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



Re: Mirrors and repositories

2011-07-08 Thread Maven User
Ahhh - here we go -

So I'm working on rolling out a corp pom for a company who doesn't have one
right now.

The corp pom is a completely different maven project/jenkins build and
structurally, unrelated to the other projects that list it as a parent.

The current version of this corp pom is 1.0-SNAPSHOT and it's deployed to my
snapshot repository within Nexus.

The grouped up repository in Nexus includes this snapshot.

When I was building without the additional repository defined, maven (maven
3.0.3) was unable to find the parent pom.  Once I added this extra
repository, boom - it all works.

What's extra confusing is I have mirrorOf*/mirrorOf - shouldn't that say
this url is a mirror of EVERYTHING?

I'm basing this all on this link:

http://maven.apache.org/guides/mini/guide-mirror-settings.html

(thank you Wendy!)


On Fri, Jul 8, 2011 at 3:58 PM, Wendy Smoak wsm...@gmail.com wrote:


 What happens when you don't?  Knowing why you think you need to do it
 would help someone explain it.

 One reason you might do it is to enable a repository to be searched
 for snapshots.  By default, Maven's built-in definition of 'central'
 only has releases enabled.  Unless you define another repository
 somewhere that has snapshots enabled, Maven will never retrieve any
 snapshots.

 --
 Wendy

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




Re: Mirrors and repositories

2011-07-08 Thread Brian Fox
 One reason you might do it is to enable a repository to be searched
 for snapshots.  By default, Maven's built-in definition of 'central'
 only has releases enabled.  Unless you define another repository
 somewhere that has snapshots enabled, Maven will never retrieve any
 snapshots.


This is exactly why ^^

You need to do the same for pluginRepositories if you ever want to get
snapshots of plugins.

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



Re: Mirrors and repositories

2011-07-08 Thread Maven User
Snapshots of plugins are explicitly banned as are not specifying versions of
plugins and relying on maven's super pom (years ago, I got whacked with this
when the war plugin changed).

But I'm not saying I'm mirroring JUST central, I thought I was saying I'm
mirroring every repository you could possibly need.

See my comment about the mirrorOf*/mirrorOf.

On Fri, Jul 8, 2011 at 4:10 PM, Brian Fox bri...@infinity.nu wrote:

  One reason you might do it is to enable a repository to be searched
  for snapshots.  By default, Maven's built-in definition of 'central'
  only has releases enabled.  Unless you define another repository
  somewhere that has snapshots enabled, Maven will never retrieve any
  snapshots.


 This is exactly why ^^

 You need to do the same for pluginRepositories if you ever want to get
 snapshots of plugins.

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




Re: Mirrors and repositories

2011-07-08 Thread Wendy Smoak
On Fri, Jul 8, 2011 at 4:09 PM, Maven User maven.2.u...@gmail.com wrote:
 When I was building without the additional repository defined, maven (maven
 3.0.3) was unable to find the parent pom.  Once I added this extra
 repository, boom - it all works.

It worked because you had snapshotsenabledtrue somewhere.

 What's extra confusing is I have mirrorOf*/mirrorOf - shouldn't that say
 this url is a mirror of EVERYTHING?

That means it'll be a mirror for any repository defined in
settings.xml or pom.xml.  If none of those repos have snapshots
enabled, Maven won't download any snapshots.

 But I'm not saying I'm mirroring JUST central, I thought I was saying I'm
 mirroring every repository you could possibly need.
 See my comment about the mirrorOf*/mirrorOf.

No, it just means, When you go through your list of known
repositories, substitute this url instead of the original one
defined.

-- 
Wendy

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



Re: Mirrors and repositories

2006-11-06 Thread Emmanuel Hugonnet

Edwin Punzalan a écrit :


Mykel is correct.

In addition, until MNG-714, when the mirror fails to deliver, the 
mirrored repository is not used.  So are mirrors of the same repository id.



Mykel Alvis wrote:

NEEDED WIKI TOPIC

My understanding is that mirrors simply override the URLs for the repos
they're mirroring.
Therefore, it's URL effectively replaces the URL configured in the
repository that it's listed as a mirrorOf
There are a number of reasons for doing this.  The ones that come to 
mind at

present are
1. You're running a maven-aware proxy (like proximity or maven-proxy) and
that proxy knows about central and you want to override the URL for
central to your proxy.
2. You know of a geographically closer mirror to some repo (often 
central)

and you want to use that mirror rather than the original one.


On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote:


Edwin Punzalan a écrit :
 repositories stores artifacts and lets mvn download from it.

 mirrors are like copies of a repository... you use it when a 
repository

 is inaccessible or too slow.

 Hope that helps


 ^_^

 Emmanuel Hugonnet wrote:
 Hi,
 I am wondering about the difference between defining a mirror and
 defining a repository. What is the use case for each one ? Which is
 taking precedence over the other ?
 Thanks for your help.
 Emmanuel

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Yep but what happens when a mirror is done ? Does Maven check the
repository ? If I proxy central or codehaus is it better to declare my
proxy as a mirror (so in the settings.xml) or as the repository (in my
POM or with a profile in my settings.xml) ? What are the consequences of
this choice ?
Thanks
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thanks,
This is clearer for me now.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mirrors and repositories

2006-11-03 Thread Edwin Punzalan


Mykel is correct.

In addition, until MNG-714, when the mirror fails to deliver, the 
mirrored repository is not used.  So are mirrors of the same repository id.



Mykel Alvis wrote:

NEEDED WIKI TOPIC

My understanding is that mirrors simply override the URLs for the repos
they're mirroring.
Therefore, it's URL effectively replaces the URL configured in the
repository that it's listed as a mirrorOf
There are a number of reasons for doing this.  The ones that come to 
mind at

present are
1. You're running a maven-aware proxy (like proximity or maven-proxy) and
that proxy knows about central and you want to override the URL for
central to your proxy.
2. You know of a geographically closer mirror to some repo (often 
central)

and you want to use that mirror rather than the original one.


On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote:


Edwin Punzalan a écrit :
 repositories stores artifacts and lets mvn download from it.

 mirrors are like copies of a repository... you use it when a 
repository

 is inaccessible or too slow.

 Hope that helps


 ^_^

 Emmanuel Hugonnet wrote:
 Hi,
 I am wondering about the difference between defining a mirror and
 defining a repository. What is the use case for each one ? Which is
 taking precedence over the other ?
 Thanks for your help.
 Emmanuel

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Yep but what happens when a mirror is done ? Does Maven check the
repository ? If I proxy central or codehaus is it better to declare my
proxy as a mirror (so in the settings.xml) or as the repository (in my
POM or with a profile in my settings.xml) ? What are the consequences of
this choice ?
Thanks
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mirrors and repositories

2006-11-02 Thread Edwin Punzalan

repositories stores artifacts and lets mvn download from it.

mirrors are like copies of a repository... you use it when a repository 
is inaccessible or too slow.


Hope that helps


^_^

Emmanuel Hugonnet wrote:

Hi,
I am wondering about the difference between defining a mirror and 
defining a repository. What is the use case for each one ? Which is 
taking precedence over the other ?

Thanks for your help.
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mirrors and repositories

2006-11-02 Thread Emmanuel Hugonnet

Edwin Punzalan a écrit :

repositories stores artifacts and lets mvn download from it.

mirrors are like copies of a repository... you use it when a repository 
is inaccessible or too slow.


Hope that helps


^_^

Emmanuel Hugonnet wrote:

Hi,
I am wondering about the difference between defining a mirror and 
defining a repository. What is the use case for each one ? Which is 
taking precedence over the other ?

Thanks for your help.
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Yep but what happens when a mirror is done ? Does Maven check the 
repository ? If I proxy central or codehaus is it better to declare my 
proxy as a mirror (so in the settings.xml) or as the repository (in my 
POM or with a profile in my settings.xml) ? What are the consequences of 
this choice ?

Thanks
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mirrors and repositories

2006-11-02 Thread Mykel Alvis

NEEDED WIKI TOPIC

My understanding is that mirrors simply override the URLs for the repos
they're mirroring.
Therefore, it's URL effectively replaces the URL configured in the
repository that it's listed as a mirrorOf
There are a number of reasons for doing this.  The ones that come to mind at
present are
1. You're running a maven-aware proxy (like proximity or maven-proxy) and
that proxy knows about central and you want to override the URL for
central to your proxy.
2. You know of a geographically closer mirror to some repo (often central)
and you want to use that mirror rather than the original one.


On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote:


Edwin Punzalan a écrit :
 repositories stores artifacts and lets mvn download from it.

 mirrors are like copies of a repository... you use it when a repository
 is inaccessible or too slow.

 Hope that helps


 ^_^

 Emmanuel Hugonnet wrote:
 Hi,
 I am wondering about the difference between defining a mirror and
 defining a repository. What is the use case for each one ? Which is
 taking precedence over the other ?
 Thanks for your help.
 Emmanuel

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Yep but what happens when a mirror is done ? Does Maven check the
repository ? If I proxy central or codehaus is it better to declare my
proxy as a mirror (so in the settings.xml) or as the repository (in my
POM or with a profile in my settings.xml) ? What are the consequences of
this choice ?
Thanks
Emmanuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, modern ways.