title: AllOf Hamcrest matcher with Maven
body: <p>Running</p>
  
  <pre><code>assertThat(collection, allOf(hasItems(i1, i2, i3), hasSize(3)));</code></pre>
  
  <p>from Eclipse (Run as -> Junit) everything works fine, but when I execute Maven test (<code>mvn clean test</code>) it fails during <code>test-compile</code> phase with the following explanation</p>
  
  <pre><code>[ERROR] The method allOf(Matcher&lt;? super T&gt;, Matcher&lt;? super T&gt;) in the type AllOf&lt;T&gt; is not applicable for the arguments (Matcher&lt;Iterable&lt;Song&gt;&gt;, Matcher&lt;Collection&lt;? extends Object&gt;&gt;)
  </code></pre>
  
  <p>The dependencies are</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
    &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
    &lt;version&gt;1.3&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit-dep&lt;/artifactId&gt;
    &lt;version&gt;4.10&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
    &lt;exclusions&gt;
      &lt;exclusion&gt;
        &lt;artifactId&gt;hamcrest-core&lt;/artifactId&gt;
        &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
      &lt;/exclusion&gt;
    &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>What am i doing wrong?</p>
  
  <p>Thanks</p>
  
  <p>Stefano</p>