[ http://jira.codehaus.org/browse/MRM-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nicolas de loof updated MRM-153: -------------------------------- Attachment: MRM153-1.0-beta-2.patch This patch has been tested on 1.0-beta-2-SNAPSHOT (rev 575722) It allows to get a relocated artifact using either : maven2 request : http://localhost:8080/archiva/repository/internal/servletapi/servletapi/2.3/servletapi-2.3.pom <"client-side" relocation> http://localhost:8080/archiva/repository/internal/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar maven1 request : http://localhost:8080/archiva/repository/internal/javax.servlet/jars/servlet-api-2.3.jar or <"server-side" relocation> http://localhost:8080/archiva/repository/internal/servletapi/jars/servletapi-2.3.jar I'd like to write some junit test but I'm not familiar with plexus and how to test servlet-based code. Maybe some integration-test would be helpfull ? > when used as a maven1 proxy, Archiva should handle relocation from maven2 poms > ------------------------------------------------------------------------------ > > Key: MRM-153 > URL: http://jira.codehaus.org/browse/MRM-153 > Project: Archiva > Issue Type: Improvement > Environment: Archiva as a repository proxy for maven1 > Reporter: nicolas de loof > Assignee: Brett Porter > Priority: Minor > Fix For: 1.0-beta-2 > > Attachments: DefaultProxyManager.java.patch, > DefaultProxyManager.java.patch, MRM-153-test.patch, MRM-153.patch, > MRM-155.patch, MRM153-1.0-beta-2.patch, MRM153-reopened+MRM-268.patch, > MRM153-reopened.patch, patch.patch > > > When a maven1 client asks for /servletapi/jars/servletapi-2.4.jar, Archiva > converts path to the maven2 location of this artifact. As maven1 has no > relocation support, the jar is required in the repo. > Archiva can be more that a proxy : download the artifact POM, read relocation > infos, and return the relocated jar. > attached Patch add a new "applyRelocation" to DefaultProxyManager. > I've tried this code with the servletapi example, but it may be bad designed > as I just discovered maven / archiva APIs. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira