Exclude transitive poi dependancy
<groupId>org.wso2.carbon.mediation</groupId>
<artifactId>org.wso2.carbon.mediation.initializer</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.apache.poi.wso2</groupId>
+ <artifactId>poi-scratchpad</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.poi.wso2</groupId>
+ <artifactId>poi-ooxml</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
