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" conf="..." /> <dependency org="com.google.gwt" name="gwt-servlet" rev="2.3.0" conf="..." /> <dependency org="com.google.gwt" name="gwt-user" rev="2.3.0" conf="..." /> My gwt-compile (when GWT's Java-to-Javascript compiler is invoked) 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/ gwt/editor/client/EditorDriver.java' [java] [ERROR] Line 97: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module? 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. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/86ee81f80a3f5d67/ca5481d6be62bd3b?lnk=raot 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 system: http://code.google.com/p/google-web-toolkit/issues/detail?id=5468 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" rev="1.0.0.GA" conf="..."/> ...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. Apparently the Java-to-Javascript compiler would like the sources, not 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... http://groups.google.com/group/google-web-toolkit/browse_thread/thread/86ee81f80a3f5d67/ca5481d6be62bd3b?lnk=raot ...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? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
