Mirrors and repositories

2011-07-08 Thread Maven User
Hi all - 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

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

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

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

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

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

Dumb question about mirrors and repositories

2010-12-06 Thread Phillip Hellewell
For some reason I was under the impression that if I had a mirrorOf * defined in my settings.xml, I didn't need to have any repositories defined. mirrors mirror idall-mirror/id nameMirror of Everything/name urlhttp://maven.example.com:8080/nexus/content/groups/public/url

Re: Dumb question about mirrors and repositories

2010-12-06 Thread Hilco Wijbenga
On 6 December 2010 11:38, Phillip Hellewell ssh...@gmail.com wrote: For some reason I was under the impression that if I had a mirrorOf * defined in my settings.xml, I didn't need to have any repositories defined. : snip/ : So now I'm really curious.  Should it actually be working with just

Re: Dumb question about mirrors and repositories

2010-12-06 Thread Phillip Hellewell
some more understanding about mirrors versus repositories to understand why things work the way they do. Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h

Re: Dumb question about mirrors and repositories

2010-12-06 Thread Justin Edelson
email you'll see I already figured that out. All I'm interesting in now is gaining some more understanding about mirrors versus repositories to understand why things work the way they do. Phillip Because by default, Maven only has central configured as a repository and that's only configured

Re: Dumb question about mirrors and repositories

2010-12-06 Thread Phillip Hellewell
On Mon, Dec 6, 2010 at 2:06 PM, Justin Edelson jus...@justinedelson.com wrote: Because by default, Maven only has central configured as a repository and that's only configured for release artifacts, not snapshots. Thanks! That explains it perfectly. Phillip

Choosing ids for mirrors and repositories

2008-01-25 Thread Wendy Smoak
When defining mirrors, do you prefer to use a different id, or are there any problems with reusing the id for the repo being mirrored? In other words, would you do this: mirror idm-internal/id -- different id mirrorOfinternal/mirrorOf url.../url /mirror or this

RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror

RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror

RE: A question about using Mirrors for Repositories

2008-01-05 Thread Thomas Chang
PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org

Re: A question about using Mirrors for Repositories

2008-01-05 Thread Heinrich Nirschl
On Jan 5, 2008 10:46 AM, Thomas Chang [EMAIL PROTECTED] wrote: I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4

Re: A question about using Mirrors for Repositories

2008-01-05 Thread Wendy Smoak
On Jan 5, 2008 2:46 AM, Thomas Chang [EMAIL PROTECTED] wrote: I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4

A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server

Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
On Jan 4, 2008 11:42 AM, Thomas Chang [EMAIL PROTECTED] wrote: Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I

Re: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the

RE: A question about using Mirrors for Repositories

2008-01-04 Thread nicklist
Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars

RE: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins

Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
In some situations maven needs additional information for resolving artifacts. This info is stored in the metadata files in the repository. Since the filenames of these metadata files are different in local and remote repositories it does not work to misuse a local repository as a remote one. It

RE: A question about using Mirrors for Repositories

2008-01-04 Thread nicklist
uses is updated. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 4:03 PM To: Maven Users List Subject: RE: A question about using Mirrors for Repositories You are right. I use the local repository on the server machine as a remote

Problem by Using Mirrors for Repositories

2008-01-03 Thread Thomas Chang
Hi all, I set in my settings.xml my mirrors as follow: ... mirrors mirror idMyRepo/id mirrorOf*/mirrorOf nameMy repository on remote server/name urlfile:sap-dev/CVSREPOS/CvsMaven/url /mirror /mirrors ... But as I run maven command such as mvn clean, it

Re: Problem by Using Mirrors for Repositories

2008-01-03 Thread Wendy Smoak
On Jan 3, 2008 11:07 AM, Thomas Chang [EMAIL PROTECTED] wrote: I set in my settings.xml my mirrors as follow: ... But as I run maven command such as mvn clean, it download the dependencies not from my mirror but from central. The connection to file:sap-dev/CVSREPOS/CvsMave is ok.

Re: Problem by Using Mirrors for Repositories

2008-01-03 Thread Thomas Chang
In my settings.xml there is just one mirror as follow: ... mirror idMyRepo/id mirrorOf*/mirrorOf nameMy repository on remote server/name urlfile:sap-dev/CVSREPOS/CvsMaven/url /mirror /mirrors ... . But I can see that it downloads from central as follow:

Re: Problem by Using Mirrors for Repositories

2008-01-03 Thread Wayne Fay
Read the bug. Maven incorrectly reports that it is downloading from Central, when it is in fact downloading from your mirror. To confirm this, you can run a network sniffer to see where the traffic is actually coming from. Wayne On 1/3/08, Thomas Chang [EMAIL PROTECTED] wrote: In my

Problem by Using Mirrors for Repositories

2007-12-28 Thread Thomas Chang
Hi all, I set my settings.xml so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. The setting in my settings.xml looks as follow. Does someone know what's wrong? Regards

RE: Problem by Using Mirrors for Repositories

2007-12-28 Thread Adrian Shum
[mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 4:06 PM To: Maven Users List Subject: Problem by Using Mirrors for Repositories Hi all, I set my settings.xml so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository

Re: Problem by Using Mirrors for Repositories

2007-12-28 Thread Heinrich Nirschl
On Dec 28, 2007 9:05 AM, Thomas Chang [EMAIL PROTECTED] wrote: Hi all, I set my settings.xml so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. The setting in my settings.xml looks as follow.

Re: Problem by Using Mirrors for Repositories

2007-12-28 Thread Thomas Chang
You are right. Thanks! Hi all, I set my settings.xml so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. The setting in my settings.xml looks as follow. Does someone know what's

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

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.

Mirrors and repositories

2006-11-02 Thread Emmanuel Hugonnet
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,

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

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

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