title: How to avoid google-collections jar to be downloaded from maven (POM), Exclude is also not working
body: <p>I want to exclude google-collection jar which is getting download even after using exclude tag. SO that whenever I execute  "mvn clean install" google-collections.jar should not be download.</p>
  
  <p>I tried to add exclude in all dependencies still whenever I execute mvn clean install google-collection jar downloaded.</p>
  
  <p>I also tried to manually delete jar file from m2 repo and then run mvn clean install. It downloads again.</p>
  
  <pre><code> &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.rcarz&lt;/groupId&gt;
              &lt;artifactId&gt;jira-client&lt;/artifactId&gt;
              &lt;version&gt;0.5&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.37&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.twitter4j&lt;/groupId&gt;
              &lt;artifactId&gt;twitter4j-core&lt;/artifactId&gt;
              &lt;version&gt;[4.0,)&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.opencsv&lt;/groupId&gt;
              &lt;artifactId&gt;opencsv&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
              &lt;version&gt;[2,)&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;[4,)&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-logging&lt;/groupId&gt;
              &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
              &lt;version&gt;1.1.3&lt;/version&gt;
              &lt;exclusions&gt;
               &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                  &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.8.5&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.uncommons&lt;/groupId&gt;
              &lt;artifactId&gt;reportng&lt;/artifactId&gt;
              &lt;version&gt;1.1.4&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.testng&lt;/groupId&gt;
                      &lt;artifactId&gt;testng&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
  
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.inject&lt;/groupId&gt;
              &lt;artifactId&gt;guice&lt;/artifactId&gt;
              &lt;version&gt;3.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;velocity&lt;/groupId&gt;
              &lt;artifactId&gt;velocity&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jsoup&lt;/groupId&gt;
              &lt;artifactId&gt;jsoup&lt;/artifactId&gt;
              &lt;version&gt;1.8.1&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;3.9&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.11.0&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-firefox-driver&lt;/artifactId&gt;
              &lt;version&gt;3.11.0&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
              &lt;version&gt;3.11.0&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;htmlunit-driver&lt;/artifactId&gt;
              &lt;version&gt;2.29.0&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;xml-apis&lt;/groupId&gt;
              &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
              &lt;version&gt;1.4.01&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
          &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
          &lt;artifactId&gt;guava&lt;/artifactId&gt;
          &lt;version&gt;23.0&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
                      &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
               &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;profiles&gt;
  </code></pre>
  
  <p>With this since I have excluded google-Collection it's Jar should not download.</p>
  
  <p>But it download google-collection jar .</p>
  
  <p>I have no clued and frustrated by trying all combination. It would be great if some one can also explain why this is not working and which dependency is downloading google-collection jar .</p>
  
  <p>I commented out guava dependency and execute mvn clean install. It downloads google collection jar.</p>