You need to add dependency jar in your pom.xml (with classifier) and define a xml module. For example I add jsr330 to my project in this way:
Add sources to classpath: <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <version>1</version> <classifier>sources</classifier> <scope>provided</scope> <type>jar</type> </dependency> Indicate to GWT that use them: In your module: <!-- javax.inject --> <inherits name='javax.JSR330' /> And I generate this file javax/JSR330.xml <module> <source path='inject' /> <source path='persistence/metamodel' /> </module> Juan 2011/11/16 András Csányi <sayusi.a...@gmail.com> > Dear All, > > I would like to ask some help because I'm a little bit confused. > There is my project where apache beanutils is used and dependencies > are managed by Maven. The whole project looks like this: > -WebClient project - gwt project > - GWTLib - external project and a few abstract classes are placed here > and they are used in the WebClient gwt project > > In the GWTLib project beanutils are used. I'm able to compile this > project without any error. But when I start to compile the WebClient > project I got an error and it says that there is no source for > BeanUtils class. Here are a few facts: > - GWTLib has the common-beanutils as dependency and the source is > downloaded. > - WebClient has the common-beanutils as dependency and the source is > downloaded. > > If I see correctly in my local maven repository every item has 2 jars, > one contains the compiled files and the other for the sources. Despite > the fact the sources are downloaded gwt compiler is not able to > compile the source. My question is that whether this is the proper > behavior of the compiler or not? If so, than what should I do to use > beanutils in my project? Should I download the source code of > beanutils and compile it that way one jar will contains the compiled > files and the sources as well? Is there any lighter way to do it or I > missed something? > > Thanks for any help in advance! > > András > > -- > - - > -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- > http://facebook.com/andras.csanyi > -- ""Trust in God and keep your gunpowder dry!" - Cromwell > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.