I am trying to get a simple GWT 2.3 project working in DevMode with an
Ant Ivy build. I have used Ivy for GWT projects prior to 2.3 (GWT
2.0.x in particular), and the following dependencies (in my Ivy module
xml file) have worked for me in the past: (I have removed the specific
names for my Ivy configurations, and show them as "..." below.)
<dependency org="com.google.gwt" name="gwt-dev" rev="2.3.0"
<dependency org="com.google.gwt" name="gwt-servlet" rev="2.3.0"
<dependency org="com.google.gwt" name="gwt-user" rev="2.3.0"
fails using the above under GWT 2.3, however. In particular, with
several errors similar to the following:
[java] [ERROR] Errors in 'jar:file:/../gwt-user-2.3.0.jar!/com/google/
[java] [ERROR] Line 97: No source code is available for type
javax.validation.ConstraintViolation<T>; did you forget to inherit a
After searching online for references that may be relevant, I find
threads like this one regarding similar problems while building
release candidates of 2.3 from source.
These threads frequently mention a gwt-servlet-deps.jar that one needs
to include in the compilation classpath, which appears to be the
fruits of the labor around this issue in the GWT issue tracking
Of course with Ivy it's not quite the same as the advice I'm seeing.
The above <dependency... rules do not appear to download a gwt-servlet-
deps.jar (as opposed to downloading GWT's official distribution,
wherein a special copy of that jar can be found).
So I have reasoned out that in the Ivy universe I probably need to add
something like this:
<dependency org="javax.validation" name="validation-api"
...and I thought I was pretty bad-ass for even having that idea (I
seem to be a perpetual newbie to the Ivy & Maven world) but, alas, I
am still getting the same errors.
just the bytecode jar, but I don't know how to tell Ivy to go get
them. I feel like I'm close because I have found this thread...
...which shows an Ant task that copies two validation jars into lib
(both bytecode and sources), but I need some help to connect the dots
for the Ivy world.
How would I tell Ivy to grab the source jar?