Error while installing Reporting module in Openmrs

Application Name: OpenMRS Core Version Number: 2.2

Question: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.reporting.serializer.ReportingSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer

I have fixed this issue by adding below line in pom.xml file for module openmrs-module-serialization.xstream.

<dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib-nodep</artifactId>
    <version>3.2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>