REST services implementations are marked with the Spring annotation @Service
+---------------------
+package org.apache.archiva.rest.services;
+......
@Service( "managedRepositoriesService#rest" )
public class DefaultManagedRepositoriesService
extends AbstractRestService
</jaxrs:serviceBeans>
.....
</jaxrs:server>
+
+ Note as we use @Service annotation package scanning must declared in spring configuration
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context-3.0.xsd ....">
+...
+ <context:annotation-config/>
+ <context:component-scan
+ base-package="org.apache.archiva.rest.services"/>
+
+...
+</beans>
+---------------------
CXF servlet is declared as: