|
We have 2 concepts that are co-mingled right now. 1) Getting an artifact from Archiva. 2) Deploying an artifact to Archiva. This proposal should focus on #1, Getting an artifact from Archiva. (As for #2, that can remain the realm of the current DavServlet implementation) I always pictured this as a new GetArtifactServlet. Lets say we have it mapped to the "/get" servlet mapping. The following urls would all point to the same artifact. : Basic Format for maven 1 clients. http://hostname.com/archiva/get/maven1/org.apache.maven.wagon/jars/wagon-scm-1.0-alpha-3.jar : Basic Format for maven 2 clients. http://hostname.com/archiva/get/maven2/org/apache/maven/wagon/wagon-scm/1.0-alpha-3/wagon-scm-1.0-alpha-3.jar : (Advanced / Future Use) apt/deb serving. http://hostname.com/archiva/get/apt-deb/org.apache.maven.wagon/wagon-scm-1.0-alpha-3.deb : (Advanced / Future Use) yum/rpm serving. http://hostname.com/archiva/get/yum-rpm/org.apache.maven.wagon/wagon-scm-1.0-alpha-3.rpm Using a new servlet, would essentially decouple the filesystem format/layout as a requirement. Archiva can assume maven 2 format for the filesystem, and serve the artifact to the client in the way that is requested. After all the artifact information is now in the database. It makes sense to me to do it this way. The idea with the URL format is that "/get/{implementation-id}/{artifact-reference-implementation-format}" The implementation id can be a plexus role-hint on the implementation of this GetArtifactServlet. What do you think? - Joakim nicolas de loof wrote: Hello, |
- service layer API proposal nicolas de loof
- Re: service layer API proposal Joakim Erdfelt
- Re: absconding GET from webdav - was ( Re: servic... Brett Porter
- Re: service layer API proposal Brett Porter
- Re: service layer API proposal nicolas de loof
- Re: service layer API proposal Joakim Erdfelt
- Re: service layer API proposal nicolas de loof
