Let me clarify what spawned this thread: I am running ITs against 2.2.0-M1 branch with mercury wagon in it, and found an IT that fails, unless wagon implements optional resourceExists().

I argue here that absence of an optional method should not make an IT fail - this is all !

As a side effect - debating whether to implement this method in Mercury transport, we came to the conclusion that it is not efficient and should be avoided. Next I decided to share this conclusion here, to check if it stands. So far - it does :)


Brian E. Fox wrote:
That's implementation specific, we're talking about an interface here. I don't 
see why we should take out this method. If someone wants to use it, fine. If 
not, also fine.

-----Original Message-----
From: Oleg Gusakov [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 12:04 PM
To: Maven Developers List
Subject: Re: wagon's resourceExists() call efficiency ?

But this information comes from repository metadata, not from probing the actual file. If it does - repository integrity is broken, isn't it?

Deploy should read the metadata anyway as it is supposed to update [in a dumb http/dav repository, Nexus can do it for us], so if version is not in metadata, or metadata read failed it's equivalent to resource does not exist, but now you have much more information to act upon.

Ralph Goers wrote:
Yes. I would actually like the deploy plugin to NOT deploy a non-SNAPSHOT artifact if it is already there.

Oleg Gusakov wrote:
I cannot imagine a use case where you would check that artifact exists in the remote repository and then don't download it. Can you?


---------------------------------------------------------------------
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]

Reply via email to