You don't have to include the sources in the jar. If you are using
maven, you can attach the sources, so they will get deployed along
with the jar into the repository. Then you can add a scoped (provided)
dependency to the gwt projects... This doubles the deps, but keeps the
sources out of the jars...

:-)


On Mar 2, 3:34 pm, Brian Cribbs <[email protected]> wrote:
> It's kind of a giant pain in the ass.  You have to change your jar file to
> include the sources.  Then in the project you want to use the jar file in
> you have to use the maven resources plugin to unpack the java files into the
> project structure.
>
> On Mon, Mar 2, 2009 at 7:52 AM, Mamadou Alimou DIALLO 
> <[email protected]>wrote:
>
> > Yes I did this:
>
> > *<build>
> >         <!--  Include SOURCE in output artifact for GWT (GWT libraries must
> > include source) -->
> >         <resources>
> >             <resource>
> >                 <directory>src/main/java</directory>
> >             </resource>
> >         </resources>
> >     </build>*
>
> > 2009/3/2 Mamadou Alimou DIALLO <[email protected]>
>
> > Do you mean some think like this ?
>
> >> *<build>
> >>         <!--  Include SOURCE in output artifact for GWT (GWT libraries
> >> must include source) -->
> >>         <resources>
> >>             <resource>
> >>                 <directory>src/main/java</directory>
> >>             </resource>
> >>         </resources>
> >>     </build>*
>
> >> 2009/3/2 Jan Ehrhardt <[email protected]>
>
> >> Did you configure your Beans-Module to include sources in the JAR?
>
> >>> Regards
> >>> Jan Ehrhardt
>
> >>> On Mon, Mar 2, 2009 at 1:40 PM, Mamadou Alimou DIALLO <
> >>> [email protected]> wrote:
>
> >>>> Hello group,
>
> >>>> I have created my GWT application using maven plugin. It works. But I
> >>>> use it in a big entreprise application. So I have others modules that
> >>>> contains beans classes wich should be used by GWT module and others 
> >>>> modules.
> >>>> I added the dependances in my GWT module POM.xml. But when I use my beans
> >>>> classes, I get some errors when packaging the GWT module. Here is my 
> >>>> project
> >>>> architecture:
>
> >>>> *parent----
> >>>>             |
> >>>>             |----GWT-Module
> >>>>             |----Beans-Module*
>
> >>>> Please Do you have an example to do this.
>
> >>>> Thanks in advance
> >>>> dialloma
>
> >> --
> >> Cordialement,
> >> DIALLO M. Alimou
> >>http://dialloma.blogspot.com/
> >> Cel. 00336 13 39 81 88
>
> > --
> > Cordialement,
> > DIALLO M. Alimou
> >http://dialloma.blogspot.com/
> > Cel. 00336 13 39 81 88
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-maven" 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/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to