logo       

Re: gwt-maven-plugin - revisited: msg#00342

java.maven-plugins.mojo.devel

Subject: Re: gwt-maven-plugin - revisited

I am not sure if I understood everything, but see my inlined comments.

On 1/29/07, Brill Pappin <brill@xxxxxxxxx> wrote:
This is one of my main pet-peeves with GWT, the tool chain is pretty
inflexible.

For myself, I want the GWT code generated into my webapp target (maybe
configurable to source as well) so that when I run the application in a
container all the parts are in place.

I did take a quick look at the GWT compiler and it looks like that is not a
lot of choice in how it generates the files... I did think I could write
small Ant script (or even add to the plugin) to put things in the correct
place.

For your example, instead of "my" can we simple call it "gwt" and have it
generated to target?

the directory with the generated java-script is configurable through
the parameter
'outputDirectory' which has the default ${project.build.directory}/www

which is inside the target directory and can be configured to any
directory you want. if there is a better default, please name it.

the my/groupid comes from where you place your Appl.gwt.xml which is
in the given example in the directory my/groupid. given this, GWT puts
everything into $outputDirectory/my.groupid.Appl/


IMO I definitely think it should go to the target directory during the
compile or a post-compile phase,

the plugin does use the compile phase, did I miss something somewhere ?

but can we come up with a way to make this
a little more seamless for packaging?

does that 'outputDirectory' help in that way ?
are you looking for something like war:inplace
http://maven.apache.org/plugins/maven-war-plugin/usage.html ??

I never used war:inplace, currently I use gwt:run which speeds up
developing. with that GWTShell I do not need to generate (gwt:compile)
the javascript after every little change this is done via the GWTShell
on a browser reload and much more efficient, since intermediate
results are cached.

for a web-mode of GWT I used jetty:run, but I agree with you that it
is a bit hacked to get the javascript via the webresources config into
the right place of the war file.

Kristian


- Brill Pappin

> -----Original Message-----
> From: J. Matthew Pryor [mailto:jmp@xxxxxxxxxxxxxxxx]
> Sent: January 29, 2007 12:47 AM
> To: dev@xxxxxxxxxxxxxxxxx
> Subject: Re: [mojo-dev] gwt-maven-plugin - revisited
>
> Thanks that works fine now.
>
> On the topic of maven webapps and GWT, I am trying to work
> out the right way to combine the 2.
>
> Standard web layout is like so:
>
> .
> |-- pom.xml
> `-- src
> `-- main
> |-- java
> | `-- com
> | `-- example
> | `-- projects
> | `-- SampleAction.java
> |-- resources
> | |-- images
> | | `-- sampleimage.jpg
> | `-- sampleresource
> `-- webapp
> |-- WEB-INF
> | `-- web.xml
> |-- index.jsp
> `-- jsp
> `-- websource.jsp
>
> If we add a GWT module to this, it might change like this:
>
> .
> .
> |-- pom.xml
> `-- src
> `-- main
> |-- java
> | `-- com
> | `-- example
> | `-- projects
> | `-- SampleAction.java
> | `-- my
> | `-- groupid
> | `-- Appl.gwt.xml
> | `-- client
> | `-- Appl.java
> | `-- public
> | `-- Appl.html.java
> |-- resources
> | |-- images
> | | `-- sampleimage.jpg
> | `-- sampleresource
> `-- webapp
> |-- WEB-INF
> | `-- web.xml
> |-- icons
> | `-- myicon.png
> |-- index.jsp
> `-- jsp
> `-- websource.jsp
>
> In particular, I am wondering abotu how I should handle web
> assets such as icons and other images that are to be accessed
> via HTTP.
> If I want to use icons for a GMarker for examle, having them
> in webapp/icons/ is technically the right place, but they
> don't get packaged up until I build the WAR, so they won't be
> available to the GWTShell.
> I could place them in src/main/java/my/groupid/public but
> that's not really the *MAVEN* way.
>
> Any thoughts?
>
> Matthew
>
>
>
>
>
> On 29/01/2007, at 4:35 PM, kristian wrote:
>
> > the anonymous svn is fixed now - I am in the moment moving
> the site to
> > a new server, sorry for the inconvenience.
> >
> > of course I will incorporate your patches and hopefully
> bring them all
> > to codehaus one day.
> >
> > Kristian
> >
> > On 1/29/07, J. Matthew Pryor <jmp@xxxxxxxxxxxxxxxx> wrote:
> >> Thanks for the reply. I am very happy to use your
> repository & code
> >> for now if that's OK I found that the web links to
> anonymous SVN did
> >> not work however?
> >> Are you able to fix that?
> >> I am happy to submit patches to you or whatever.
> >>
> >> Thanks for all the excellent work you have done on this.
> >>
> >> Matthew
> >>
> >> On 29/01/2007, at 4:04 PM, kristian wrote:
> >>
> >> > Hello,
> >> >
> >> > I am myself using the plugin in two little projects and
> I am still
> >> > fixing some little bugs here and there, when I run into
> them. but I
> >> > did not upload a new tar.gz everytime I did some changes.
> >> >
> >> > the archetypes you can find under
> >> > http://www.saumya.de/projects/gwt-tools/
> >> > along with my latest sources.
> >> >
> >> > I do agree that the archetypes are very useful, better than copy
> >> and
> >> > paste sample configurations into my my new pom.xml.
> >> >
> >> > anytime this plugin becomes part of codehaus I will start using
> >> > codehaus and contribute to the codehaus plugin.
> >> >
> >> > Kristian
> >> >
> >> > On 1/28/07, J. Matthew Pryor <jmp@xxxxxxxxxxxxxxxx> wrote:
> >> >> Hi,
> >> >>
> >> >> I have been working with the code submitted as a patch
> by Kristian
> >> >> Meier and achieving great results.
> >> >>
> >> >> There are also a bunch of issues I have come up against and was
> >> >> hoping to start up a discussion with other folks, but not much
> >> seems
> >> >> to have happened with it.
> >> >>
> >> >> Is there anyone out there who is interested to push the
> plugin on
> >> >> further? Its very close to being very useful.
> >> >>
> >> >> Kristian if you are still on list I'd like to see the
> >> archetypes as
> >> >> well, they could save a lot of time.
> >> >>
> >> >> Thanks,
> >> >> Matthew Pryor
> >> >>
> >> >>
> >> >>
> >>
> ---------------------------------------------------------------------
> >> >> To unsubscribe from this list please visit:
> >> >>
> >> >> http://xircles.codehaus.org/manage_email
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> ---------------------------------------------------------------------
> >> > To unsubscribe from this list please visit:
> >> >
> >> > http://xircles.codehaus.org/manage_email
> >> >
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >> http://xircles.codehaus.org/manage_email
> >>
> >>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> > http://xircles.codehaus.org/manage_email
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




--
Kristian Meier & Saumya Sharma-Meier
Sahyadri School (Krishnamurti Foundation India),
Tiwai Hill,
Rajgurunagar, Pune-410513
Maharashtra, INDIA

tel: +91 (2135) 321313
pgp: http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x61DB690F
my home:
http://maps.google.com/maps?hl=en&ie=UTF8&z=18&ll=18.984342,73.772416&spn=0.00209,0.004731&t=k&om=1&mid=1156683744

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise