1

While working with aws sdk v2 for java, i had encounter with some issues.

i had included the DynamboDb and S3 dependencies and tried to run Maven install.

the problem is that the same dependency- S3, tried to fetch different versions of netty-handler.

this error was shown:

and
  +-software.amazon.awssdk:s3:2.5.49
    +-software.amazon.awssdk:netty-nio-client:2.5.49
      +-io.netty:netty-handler:4.1.33.Final
and
  +-software.amazon.awssdk:s3:2.5.49
    +-software.amazon.awssdk:netty-nio-client:2.5.49
      +-com.typesafe.netty:netty-reactive-streams-http:2.0.0
        +-com.typesafe.netty:netty-reactive-streams:2.0.0
          +-io.netty:netty-handler:4.1.13.Final
BenBit
  • 31
  • 5

1 Answers1

1

You need to resolve the convergence error by defining a version in your dependencyManagement section. If you don't know which version, it is advisable to use the newest of the confliciting ones and try.

It is not unusual that both conflicting dependencies are from beneath the same direct dependency.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
  • Hey , thanks for the help. can you provide more details? i'm not sure- which version are you talking about? the base dependency or the "trouble" one? – BenBit May 24 '19 at 18:49
  • You need to add an entry to the `` section of your `pom.xml`, which sets the version of `netty-handler` to the one you want, probably `4.1.33.Final`. – J Fabian Meier May 24 '19 at 19:24