Re: Central repository overriding with mirror

2007-11-23 Thread Dirk Olmes

 1 required artifact is missing.
 
 for artifact:
   de.pdark:dsmp:jar:1.1
 
 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
 
 
 I've replaced urlhttp://myproxy/url to a non existing url to exonerate
 my proxy ... I've got same trace.
 
 However if instead of define a mirror, I create a profile with a repository
 id central, Maven seems to stop trying to connect to
 http://repo1.maven.org/maven2

Are you sure it's not connecting your mirror? IIRC the output just
lies ...

-dirk

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



Re: [Solved]Re: Central repository overriding with mirror

2007-11-23 Thread Saloucious

yes, Maven just prints the wrong url in the error message if the artifact is
not
found

Wendy Smoak-3 wrote:
 
 On Nov 22, 2007 11:11 AM, Saloucious [EMAIL PROTECTED] wrote:
 
 Ok i've just trace Http request,

 You were right, Maven always prints the original url put does not send
 any
 HTTP request to repo01
 
 I thought so... looks like there is already an issue open for it:
 http://jira.codehaus.org/browse/MNG-1914  Please comment on it if you
 have any additional info.
 
 Just to be clear, my understanding is that mirroring _works_ fine, it
 just prints the wrong url in the error message if the artifact is not
 found.  Is that your experience also?
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13909085
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Central repository overriding with mirror

2007-11-22 Thread Saloucious

Hi,

I'm trying to redirect central repository to my maven proxy,

mirrors
mirror
idcentral/id
mirrorOfcentral/mirrorOf
urlhttp://myproxy/url
/mirror
/mirrors


But I don't understand why Maven is trying to contact
http://repo1.maven.org/maven2 : 

--
1 required artifact is missing.

for artifact:
  de.pdark:dsmp:jar:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


I've replaced urlhttp://myproxy/url to a non existing url to exonerate
my proxy ... I've got same trace.

However if instead of define a mirror, I create a profile with a repository
id central, Maven seems to stop trying to connect to
http://repo1.maven.org/maven2


-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13899017
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Central repository overriding with mirror

2007-11-22 Thread Wendy Smoak
On Nov 22, 2007 9:20 AM, Saloucious [EMAIL PROTECTED] wrote:

 I'm trying to redirect central repository to my maven proxy,

 mirrors
 mirror
 idcentral/id
 mirrorOfcentral/mirrorOf
 urlhttp://myproxy/url
 /mirror
 /mirrors


 But I don't understand why Maven is trying to contact
 http://repo1.maven.org/maven2 :

 --
 1 required artifact is missing.

 for artifact:
   de.pdark:dsmp:jar:1.1

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)

I have this on my list to double check (and complain about) but I
think if you use a mirror, Maven always prints the original url,
even if it is really contacting a different url.

Can you watch the network traffic and confirm?

 I've replaced urlhttp://myproxy/url to a non existing url to exonerate
 my proxy ... I've got same trace.

 However if instead of define a mirror, I create a profile with a repository
 id central, Maven seems to stop trying to connect to
 http://repo1.maven.org/maven2

Are you basing this conclusion solely on the printed messages?

-- 
Wendy

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



Re: Central repository overriding with mirror

2007-11-22 Thread Tamás Cservenák
Hello,

no, M2 in case remote repo is redirected to mirror is writing out the
mirror URL.

The problem could be here that you are overriding repo with ID
central using mirror with ID central. As a 1st step, i would
suggest renaming the mirror id to something like central-mirror and
try it.

In profile case, you were overdefining the existing central repo
with new repo.

~t~

On Nov 22, 2007 5:38 PM, Wendy Smoak [EMAIL PROTECTED] wrote:
 I have this on my list to double check (and complain about) but I
 think if you use a mirror, Maven always prints the original url,
 even if it is really contacting a different url.

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



Re: Central repository overriding with mirror

2007-11-22 Thread Saloucious

With mirror, My proxy never receive a requet from my computer.

But i will check my traffic to see what happen on my computer


Wendy Smoak-3 wrote:
 
 On Nov 22, 2007 9:20 AM, Saloucious [EMAIL PROTECTED] wrote:
 
 I'm trying to redirect central repository to my maven proxy,

 mirrors
 mirror
 idcentral/id
 mirrorOfcentral/mirrorOf
 urlhttp://myproxy/url
 /mirror
 /mirrors


 But I don't understand why Maven is trying to contact
 http://repo1.maven.org/maven2 :

 --
 1 required artifact is missing.

 for artifact:
   de.pdark:dsmp:jar:1.1

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
 
 I have this on my list to double check (and complain about) but I
 think if you use a mirror, Maven always prints the original url,
 even if it is really contacting a different url.
 
 Can you watch the network traffic and confirm?
 
 I've replaced urlhttp://myproxy/url to a non existing url to
 exonerate
 my proxy ... I've got same trace.

 However if instead of define a mirror, I create a profile with a
 repository
 id central, Maven seems to stop trying to connect to
 http://repo1.maven.org/maven2
 
 Are you basing this conclusion solely on the printed messages?
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13900349
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Central repository overriding with mirror

2007-11-22 Thread Wendy Smoak
On Nov 22, 2007 10:20 AM, Saloucious [EMAIL PROTECTED] wrote:

 With mirror, My proxy never receive a requet from my computer.

 But i will check my traffic to see what happen on my computer

That's good enough. :)  And Tamas says that the info messages _are_
correct, so try his suggestion of using a different id.

-- 
Wendy

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



Re: [Solved]Re: Central repository overriding with mirror

2007-11-22 Thread Wendy Smoak
On Nov 22, 2007 11:11 AM, Saloucious [EMAIL PROTECTED] wrote:

 Ok i've just trace Http request,

 You were right, Maven always prints the original url put does not send any
 HTTP request to repo01

I thought so... looks like there is already an issue open for it:
http://jira.codehaus.org/browse/MNG-1914  Please comment on it if you
have any additional info.

Just to be clear, my understanding is that mirroring _works_ fine, it
just prints the wrong url in the error message if the artifact is not
found.  Is that your experience also?

-- 
Wendy

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



[Solved]Re: Central repository overriding with mirror

2007-11-22 Thread Saloucious

Ok i've just trace Http request,

You were right, Maven always prints the original url put does not send any
HTTP request to repo01




Wendy Smoak-3 wrote:
 
 On Nov 22, 2007 9:20 AM, Saloucious [EMAIL PROTECTED] wrote:
 
 I'm trying to redirect central repository to my maven proxy,

 mirrors
 mirror
 idcentral/id
 mirrorOfcentral/mirrorOf
 urlhttp://myproxy/url
 /mirror
 /mirrors


 But I don't understand why Maven is trying to contact
 http://repo1.maven.org/maven2 :

 --
 1 required artifact is missing.

 for artifact:
   de.pdark:dsmp:jar:1.1

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
 
 I have this on my list to double check (and complain about) but I
 think if you use a mirror, Maven always prints the original url,
 even if it is really contacting a different url.
 
 Can you watch the network traffic and confirm?
 
 I've replaced urlhttp://myproxy/url to a non existing url to
 exonerate
 my proxy ... I've got same trace.

 However if instead of define a mirror, I create a profile with a
 repository
 id central, Maven seems to stop trying to connect to
 http://repo1.maven.org/maven2
 
 Are you basing this conclusion solely on the printed messages?
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a1390
Sent from the Maven - Users mailing list archive at Nabble.com.


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