mirror of https://github.com/apache/archiva.git
fix compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1539900 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72c500a6b4
commit
a0b9510169
|
@ -18,8 +18,9 @@ package org.apache.archiva.rest.services.interceptors;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.jackson.map.DeserializationConfig;
|
||||
import org.codehaus.jackson.map.ObjectMapper;
|
||||
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -28,8 +29,9 @@ import javax.inject.Inject;
|
|||
|
||||
/**
|
||||
* class to setup Jackson Json configuration
|
||||
* @since 1.4-M3
|
||||
*
|
||||
* @author Olivier Lamy
|
||||
* @since 1.4-M3
|
||||
*/
|
||||
@Service("archivaJacksonJsonConfigurator")
|
||||
public class JacksonJsonConfigurator
|
||||
|
@ -40,6 +42,6 @@ public class JacksonJsonConfigurator
|
|||
public JacksonJsonConfigurator( ObjectMapper objectMapper )
|
||||
{
|
||||
log.info( "configure jackson ObjectMapper" );
|
||||
objectMapper.configure( DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false );
|
||||
objectMapper.configure( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ package org.apache.archiva.rest.services;
|
|||
*/
|
||||
|
||||
|
||||
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
|
||||
import org.apache.archiva.admin.model.beans.ManagedRepository;
|
||||
import org.apache.archiva.common.utils.FileUtil;
|
||||
import org.apache.archiva.redback.rest.services.AbstractRestServicesTest;
|
||||
|
@ -42,7 +43,6 @@ import org.apache.commons.io.FileUtils;
|
|||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.cxf.jaxrs.client.JAXRSClientFactory;
|
||||
import org.apache.cxf.jaxrs.client.WebClient;
|
||||
import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
|
Loading…
Reference in New Issue