Maven Dependency changes commons-io version

If commons-io is already provide by your pom and is newer than the version brought by the dependent you could exclude commons-io from this dependency :

<project>   
  ...   
   <dependencies>
    <dependency>
      <groupId>sample.ProjectA</groupId>
      <artifactId>your dependency-A</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>  <!-- declare the exclusion here -->
          <groupId>commons-io</groupId>
          <artifactId>commons-io</artifactId>
        </exclusion>
      </exclusions> 
    </dependency>   

More details here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top