title: How to check maven dependency compatibility
body: <p>I'm trying to figure out if it is possible to check whether a maven dependency is still compatible in the configured configuration of a project.</p>
  
  <p>Here is my Test setup:</p>
  
  <p>There are 3 projects. <code>Child-A</code>, <code>Child-B</code>, <code>Child-C</code>.</p>
  
  <p><code>Child-A</code> is available in 2 Version which are not compatible to each other.
  Version <code>0.0.1-SNAPSHOT</code> has a method</p>
  
  <pre><code>public void myMethod(String oneParameter)
  </code></pre>
  
  <p>Version <code>0.0.2-SNAPSHOT</code> changes this method to</p>
  
  <pre><code>public void myMethod(String oneParameter, String secondParameter)
  </code></pre>
  
  <p><code>Child-B</code> has a dependency to <code>Child-A</code> in Version <code>0.0.1-SNAPSHOT</code> and calls the method with <strong>one</strong> parameter.</p>
  
  <pre><code>public class ChildB {
      public void callChild(String myParam) {
          final ChildA test = new ChildA();
          String methodParam = String.format("%s is calling %s with Parameter %s ", this.getClass().getName(),
                  test.getClass().getName(), myParam);
          test.myMethod(methodParam);
      }
  }
  </code></pre>
  
  <p><code>Child-C</code> now has a dependency to Child-B and a dependency to Child-A Version <code>0.0.2-SNAPSHOT</code>.</p>
  
  <p><code>Child-C</code> calls <code>Child-B</code> in this way:</p>
  
  <pre><code>public static void main(String[] args) {
      ChildB inner = new ChildB();
      inner.callChild(" Parameter from main method! ");
  }
  </code></pre>
  
  <p>For the compiler this is just fine, but during runtime <code>Child-B</code> will run into trouble because <code>Child-A</code> is present in Version <code>0.0.2-SNAPSHOT</code> and therefore the method with just one Parameter does not exist anymore.</p>
  
  <p>I'm trying to configure my maven setup in that way that when <code>Child-C</code> is build it will check the signatures / compatibility of its dependencies with the setup of it's effective pom.</p>
  
  <p>I thought the maven animal-sniffer plugin could be a solution, but didn't found a section to check inner dependencies.</p>
  
  <p>Does anybody know how to check those behavior?</p>