fix String transformation of 2.0 -> 2 was not correct for artifacts versions

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-25 22:45:37 +00:00
parent 0519a2f99a
commit 773d2784a5
1 changed files with 9 additions and 0 deletions

View File

@ -38,10 +38,19 @@
<context:annotation-config/>
<context:component-scan
base-package="org.apache.archiva.rest.services"/>
<!-- convertTypesToStrings -->
<bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.JSONProvider">
<!-- without that String 2.0 are transformed to 2 which is not correct for versions -->
<property name="convertTypesToStrings" value="true"/>
<!--property name="serializeAsArray" value="true"/-->
</bean>
<jaxrs:server id="archivaServices" address="/archivaServices">
<jaxrs:providers>
<ref bean="jsonProvider"/>
<!--
<bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
-->