sources jars almost empty? (Needed for GWT)

The current version of the Google Guava libraries (10.0.1) are nicely deployed on Maven Central here http://repo1.maven.org/maven2/com/google/guava/guava/10.0.1/

My GWT compiler keeps complaining eg "GWT Module com.google.common.Collect.gwt.xml not found in project sources or resources." which is no surprise, given it can't find the sources anywhere. There are -sources jar in Maven Central, too, but they contain no sources. Only some shell scripts and GWT module definitions.

Why are the source jars without sources and is there another weird way to get Guava 10.0.1 play with GWT and Maven?


When you say the source jars are empty, are you talking about the guava artifact, or the guava-gwt artifact? They don't seem empty to me. The guava-gwt.jar even contains the sources (GWT needs the sources to be present in the jar you depend on, not the -sources.jar).

According to the Guava wiki, you simply need a dependency to the guava-gwt artifact (instead of guava).

Maybe a GWT expert can chime in, I haven't used it since last year.

链接地址: http://www.djcxy.com/p/44116.html

上一篇: 无法编译播放showcase html

下一篇: 来源罐子几乎空? (需要GWT)