0

Lets say for example I need two dependencies A and B. Dependency A uses dependency B version 1.2 and the update column lists say 4.2, In my pom I declared The version of B to be say 1.1, Would this cause a dependency issue? Now lets say the version was set to 4.2, would it work even though its not the listed version of the dependency?

Table for Reference:

1

Generally, How do the maven dependencies need to be arranged for my war file to run properly?

I tried to figure out why im getting...

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult()

I have read dependency version conflicts can cause the issue so im trying to find the potential causes of this issue.

Im attempting to update a legacy project to newer versions of the JDK, Struts, jetty and some others.

Roman C
  • 49,761
  • 33
  • 66
  • 176
  • DepA should already know its transitive dependencies. But yes, using a different version than the version the dependency wants may cause a dependency issue--that's kind of the whole point of dependency management. – Dave Newton Mar 07 '23 at 21:09

0 Answers0