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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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.
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:
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
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
[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
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.
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
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
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.
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,
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
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
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
38 matches
Mail list logo