logo       

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

java.maven-plugins.mojo.devel

Subject: Re: gwt-maven-plugin - revisited

first we have the GWT way:
put everything under my/groupid and here you could make:
* a directory icons and add <public path="icons"/> in your myproject.gwt.xml
* or place the icons in public/icons which is the GWT default

with this approach you can launch the GWT with GWTShell via the
gwt-maven-plugin or by hand.

second we have the MAVEN way:
* resources/my/groupid/public
here the plugin needs to patched so that the resources directory gets
added to the GWTShell classpath to work

but all together the GWT always expect things relative to where the
myproject.gwt.xml file is located, all non-canonical and absolut
pathes in that xml are ignored.

maybe there is some other way to get this done, I don't see it yet.

Kristian

On 1/29/07, J. Matthew Pryor <jmp@xxxxxxxxxxxxxxxx> wrote:
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




--
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