Hi Trygve,

no, Proximity does not have any dependency on Maven (or Spring used in WAR)
whatsoever. Proximity is made from px-core, an extensible proxy engine, and
is extended to be a Maven1/2 proxy using px-core-maven, the Maven bindings
for Proximity. This binding extends the Proximity index content by POM
parsed stuff, brings in a new "proxy" logic to be able to distinguish
metadata, POMs, etc.

Proximity does not handle Maven repository as MAVEN REPOSITORY. It handles
it as any HTTP content (huh, not a 100% true but almost, this is the fact
that "proximity-logic" drives the request fulfillment). You could even use
proximity as a simple proxy-server for any other content!

Example:
Put a proximity instance with  HTTP remote peer pointing to
http://proximity.abstracthorizon.org/ and request the /index.html page from
proximity (http://localhost:8080/index.html)! :) It will fetch it for you,
complete with pictures!

Proximity itself (in current RCx version) is not aware about Maven
repository it serves. This is why it is so simple. A later feature will
incorporate a response transformation (a la J2EE filters), that would be
used to transform content (eg .POMs) on the fly to smthin... but this will
be (again) in Maven binding, and not in px-core (where remotePeer
implementations resides).

Still, the physical transport abstraction (as Wagon is itself) is already
given by Proximity using RemoteStorage interface (and currently have HTTP
and FTP implementations). AFAIK, Wagon itself does not handle POMs,it only
transports resources (files, streams).

Maven Wagon could be eventually the third RemotePeer implementation... but
one of the problem I see with Wagon is inability to inquire the file without
fetching it (like HTTP HEAD method or FTP LIST method), which is used by
Proximity to check quickly a file existence remotely or fetch it's
attributes without fetching the whole file. And this feature is important
from Proximity's aspect, enabling faster response times in some cases.

Sorry for this long mail :)

Have fun
~t~

On 7/24/06, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:

Tamás Cservenák wrote:
> Hi all,
>
> i just want to announce that Proximity RC2 (in preparation) just got
richer
> with a FTPRemotePeer, thus, it is able to proxy FTP remote repositories

Shouldn't you be using Maven Wagon to transfer files? That way you can
support any of the repository types that Maven itself support.

--
Trygve

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


Reply via email to