i'm trying integrate dagger 2 dependency injection framework vaadin. looks there possible conflict guava version included vaadin , dagger's guava dependency. i've narrowed down build command vaadin:compile
in intellij results in following:
[error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project vaadin: compilation failure [error] failure executing javac, not parse error: [error] [error] [error] annotation processor threw uncaught exception. [error] consult following stack trace details. [error] java.lang.nosuchmethoderror: com.google.common.collect.multimaps.filterkeys(lcom/google/common/collect/setmultimap;lcom/google/common/base/predicate;)lcom/google/common/collect/setmultimap;
i've tried changing scope of dagger compiler in build path provided
still encounters issue.
is there way resolve compile time issue between vaadin , dagger?
so can happen when mobile dev using dagger , try switching web app development maven. failed understand / read instructions using dagger 2 maven:
in maven project, 1 include runtime in dependencies section of pom.xml, , dagger-compiler artifact dependency of compiler plugin:
using gradle, place imports in same place in build.gradle. realized needed add compiler separate section of pom.xml maven plugin compiler:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <dependencies> <dependency> <groupid>org.codehaus.plexus</groupid> <artifactid>plexus-compiler-javac</artifactid> <version>1.8.6</version> </dependency> **<dependency> <groupid>com.google.dagger</groupid> <artifactid>dagger-compiler</artifactid> <version>2.0</version> <optional>true</optional> </dependency>** </dependencies> </plugin>
lesson learned.
Comments
Post a Comment