Using Guava in a Maven GWT Project -
i have project utilize google guava libraries (on both server-side , client-side), however, having trouble setting up.
i able add gwt , guava dependencies, , gwt projects compiling correctly. server-side code using guava works correctly.
but if try add gwt project using following:
<inherits name="com.google.common.collect.collect" />
and use application in development mode via mvn gwt:run
, brings google development mode interface , gives errors of flavor:
unable find 'com/google/common/collect/collect.gwt.xml' on classpath...
presumably because maven dependency compiled class files, , not source/.gwt.xml files needs compile down javascript. found if go guava website, , download files, there file called guava-r08-gwt.jar, think heading in direction of solution.
ideally, there dependency add in maven lets me use inherits command, other workarounds welcomed.
as mentioned in 1 of answers, in works.
in meantime, have set temporary public maven-repo purpose. make no guarantees staying up, here repo/dependency stuff:
<repository> <id>deepthought</id> <name>deepthought public repository</name> <url>http://deepthought.co/maven-repo</url> </repository> <dependency> <groupid>com.google.guava</groupid> <artifactid>guava-gwt</artifactid> <version>r08</version> </dependency>
feel free use now, though.
Comments
Post a Comment