title: How to configure the Maven dependency for Guice 3.0 for use without AOP?
body: <p>I have an Android Maven project and want to use <a href="https://code.google.com/p/google-guice/wiki/Guice30" rel="nofollow">Google Guice 3.0</a> in it.</p>
  
  <p>There is a "No-AOP" version of Guice, which is compatible with Android.</p>
  
  <p>How can I tell <a href="/questions/tagged/maven" class="post-tag" title="show questions tagged &#39;maven&#39;" rel="tag">maven</a> to use the "No-AOP" version of <a href="/questions/tagged/guice" class="post-tag" title="show questions tagged &#39;guice&#39;" rel="tag">guice</a>?</p>
  
  <p><strong>Update 1 (03.05.2013 10:46 MSK):</strong></p>
  
  <p>When I add the dependency on Google Guice, I get following exception during the build (<code>mvn clean install</code>):</p>
  
  <pre><code>[INFO] UNEXPECTED TOP-LEVEL EXCEPTION:
  [INFO] java.lang.IllegalArgumentException: already added: Lcom/google/inject/Abs
  tractModule;
  [INFO]  at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:12
  3)
  [INFO]  at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
  [INFO]  at com.android.dx.command.dexer.Main.processClass(Main.java:490)
  [INFO]  at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
  [INFO]  at com.android.dx.command.dexer.Main.access$400(Main.java:67)
  [INFO]  at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
  [INFO]  at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpen
  er.java:245)
  [INFO]  at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.j
  ava:131)
  [INFO]  at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java
  :109)
  [INFO]  at com.android.dx.command.dexer.Main.processOne(Main.java:422)
  [INFO]  at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
  [INFO]  at com.android.dx.command.dexer.Main.run(Main.java:209)
  [INFO]  at com.android.dx.command.dexer.Main.main(Main.java:174)
  [INFO]  at com.android.dx.command.Main.main(Main.java:91)
  [INFO] 1 error; aborting
  </code></pre>
  
  <p>Here are my dependencies:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.android&lt;/groupId&gt;
          &lt;artifactId&gt;android&lt;/artifactId&gt;
          &lt;version&gt;4.1.1.4&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.8.2&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&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;classifier&gt;no_aop&lt;/classifier&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Make sure this (robolectric dependency) is below the android dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.pivotallabs&lt;/groupId&gt;
          &lt;artifactId&gt;robolectric&lt;/artifactId&gt;
          &lt;version&gt;1.0-RC4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.achartengine&lt;/groupId&gt;
          &lt;artifactId&gt;achartengine&lt;/artifactId&gt;
          &lt;version&gt;1.1.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.easytesting&lt;/groupId&gt;
          &lt;artifactId&gt;fest-assert-core&lt;/artifactId&gt;
          &lt;version&gt;2.0M8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;ru.altruix&lt;/groupId&gt;
          &lt;artifactId&gt;ccp-commons&lt;/artifactId&gt;
          &lt;version&gt;1.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;ru.altruix&lt;/groupId&gt;
          &lt;artifactId&gt;commons&lt;/artifactId&gt;
          &lt;version&gt;1.11&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
          &lt;version&gt;2.1.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
          &lt;version&gt;2.1.4&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>