Does anyone know of a maven plugin that will analyze dependencies and
verify that all jars are compatible? This would catch NoSuchMethod
errors from being thrown later...the best case is that all of these will
be caught in junit...but not always since the unit tests will only cover
the top level project, and not the nested libraries.
For example, imagine you have a Project, call it A. A depends on X and
Y libraries directly. X also depends on Y directly.
"A" depends on X 2.0 and Y2.0. However, if X 2.0 was released while
depending on Y 1.0, and some method in Y changed its signature between
1.0 and 2.0, then when A runs, and some class in X tries to call the
changed signature in Y, it will get NoSuchMethod -- only at runtime.
Without requiring that we always release Y, then X, then A, we would
like to be able to catch these runtime errors at compile time...It
should be a fairly simple check of all the class files against the
current classpath, and I'm hoping that something has already been
written to do this...perhaps even built in to javac somewhere, or some
other JDK tool? Or some existing maven plugin.
Thanks for reading and trying to understand this hard-to-explain, yet
fairly obvious problem.
-Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]