From d85c1890d7396288719de1e4fb0ee9314f8e1193 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 18 Aug 2011 09:49:20 +0000 Subject: [PATCH] [MRM-1490] Expose archiva services trough rest add the configuration in webapp module to expose it git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1159120 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-web/archiva-webapp/pom.xml | 50 ++++++++++++++++- .../src/main/webapp/WEB-INF/decorators.xml | 1 + .../src/main/webapp/WEB-INF/web.xml | 53 +++++++++++-------- pom.xml | 19 ++++--- 4 files changed, 94 insertions(+), 29 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 377bfdf98..64ec0fdd5 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -114,6 +114,10 @@ org.apache.archiva archiva-xmlrpc-security + + org.apache.archiva + archiva-rest-services + javax.servlet servlet-api @@ -161,6 +165,28 @@ commons-lang commons-lang + + org.apache.cxf + cxf-bundle-jaxrs + + + org.eclipse.jetty + jetty-server + + + commons-logging + commons-logging + + + org.apache.geronimo.specs + geronimo-servlet_3.0_spec + + + org.apache.geronimo.specs + geronimo-javamail_1.4_spec + + + ognl ognl @@ -211,7 +237,7 @@ - + org.codehaus.redback redback-struts2-content @@ -236,6 +262,28 @@ redback-xmlrpc-security runtime + + org.codehaus.redback + redback-keys-memory + + + commons-logging + commons-logging + + + + + + org.codehaus.redback + redback-rest-services + runtime + + + commons-logging + commons-logging + + + org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/decorators.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/decorators.xml index acb6a423a..0148875d6 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/decorators.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/decorators.xml @@ -22,6 +22,7 @@ /repository/* /components/* + /restServices/* diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml index 7d24f88c0..f2cceebe4 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml @@ -119,25 +119,25 @@ enabledForExtensions true - 1 + 2 - - RedbackXmlRpcServlet - com.atlassian.xmlrpc.spring.BinderSpringXmlRpcServlet - - serviceListBeanName - redbackXmlrpcServicesList - - - authHandlerBeanName - redbackXmlRpcAuthenticator - - - enabledForExtensions - true - - + + RedbackXmlRpcServlet + com.atlassian.xmlrpc.spring.BinderSpringXmlRpcServlet + + serviceListBeanName + redbackXmlrpcServicesList + + + authHandlerBeanName + redbackXmlRpcAuthenticator + + + enabledForExtensions + true + + RssFeedServlet @@ -161,10 +161,10 @@ /xmlrpc - - RedbackXmlRpcServlet - /redback-xmlrpc - + + RedbackXmlRpcServlet + /redback-xmlrpc + jdbc/users @@ -179,4 +179,15 @@ Shareable + + CXFServlet + org.apache.cxf.transport.servlet.CXFServlet + 1 + + + + CXFServlet + /restServices/* + + diff --git a/pom.xml b/pom.xml index dbceb1479..76e4d704f 100644 --- a/pom.xml +++ b/pom.xml @@ -761,7 +761,6 @@ org.codehaus.redback redback-keys-memory ${redback.version} - test commons-logging @@ -884,6 +883,12 @@ org.codehaus.redback redback-rest-services ${redback.version} + + + commons-logging + commons-logging + + org.codehaus.redback @@ -895,12 +900,12 @@ org.codehaus.redback redback-authentication-api ${redback.version} - - - commons-logging - commons-logging - - + + + commons-logging + commons-logging + +