Re: Mojo's Maven Plugin for GWT - general questions

2017-02-28 Thread Magnus
Hello,

thank you all for your help. BTW: This is a great group!

Let me summarize, where I am now:

   - Eclipse Neon
   - GWT Eclipse Plugin V3
   upgraded from Eclipse 4.6 Neon
   - Mojo's Maven Plugin for Eclipse
   still this one for now, see below

Now the eclipse context menu on the project name looks like this:




But calling "GWT Development mode" results in this message:

Usage: at least one module must be supplied


I don't understand this message, because I provided a name for a module 
when I created the project.

Where can I go from here?

I have the newest eclipse with the right GWT plugin
And I have Mojo's GWT plugin, which is not deprecated, as mentioned in the 
post Thomas referred to:

https://github.com/gwt-maven-plugin/gwt-maven-plugin/issues/ 



If it's not deprecated, then how can I get it working? 

I would like to stay with this configuration for a while, since I don't 
like hopping to the next tool/plugin as soon as there are difficulties with 
the current one.
So please, as long there is nothing deprecated in my setup, what's still 
wrong then?

Now to the other approaches:

   - Using the "tbroyer" maven plugin for GWT:
   I believe that this is the better, more scaleable plugin. But as already 
   mentioned in another thread, I cannot live with the fact that this plugin 
   creates 4 top-layer projects for one application. Although there is a 
   hierarchy at the file system level, there is a flat list of projects shown 
   eclipse's standard view, which is the package view. There are also three 
   sub packages when creating a new GWT project with the GWT eclipse plugin, 
   but they show up in a hierarchical manner, when you select "hierarchical 
   view". The tbroyer project remains flat. I don't know how someone wants to 
   work with n projects shown um as n*4 entries in this view?
   
   - Create maven project "from scratch"
   This may be instructive, but it's not a good approach when you are at 
   the very beginning with maven, as I am. For now, I need a tool that creates 
   a maven project for me.

Remember where I am coming from: I used to create my GWT projects solely 
with the eclipse plugin, without Maven. This is what I want to get rid of. 
I already love to change things like the JDK or GWT version just by editing 
the pom.xml file and Maven does all the rest. However, I never used many 
GWT modules in my projects and for my first steps with Maven I would like 
to have something equivalent. I am sure that this would be important for 
many new users.

Now that all my tools are up to date, there must be an approach for me...

Thanks
Magnus




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to compile to standards mode?

2017-02-28 Thread Harry Wagner
I've inherited support for a GWT application that was built with 2.4. It 
only runs in quirks mode. I would like to update it to run in standards 
mode (using 2.8) but am having trouble determining what exactly needs 
changed to make this happen. The release notes help, but it would be MUCH 
easier if the GWT compiler could be passed a parameter that would make it 
flag deprecated classes and their methods that will cause it to run in 
quarks mode. I have not been able to find one, and the GWT compiler does 
not complain when I compile the project using the 2.8 jars. Does anyone 
here know of such a parameter, or another approach to getting the code from 
running in quirks mode to running in standard mode? Thanks!

Harry

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Mojo's Maven Plugin for GWT - general questions

2017-02-28 Thread Thomas Broyer


On Tuesday, February 28, 2017 at 3:48:51 AM UTC+1, Magnus wrote:
>
> Hello Ignacio,
>
> thank you for the Youtube-Link.
>
> *Concerning the old GWT plugin:*
>
> I am using Eclipse Neon with the corresponding GWT plugin from here:
>
> [https://developers.google.com/eclipse/docs/download]
>
>
> This is the official GWT plugin for Eclipse Neon. Is this outdated??
>

See https://developers.google.com/eclipse/ ⇒ “The Google Plugin for Eclipse 
will not be supported past Eclipse 4.6 Neon. Developers may replace its 
functionality as follows: […] For GWT, install the GWT Eclipse plugin 
.”
 

>
> *Concerning the old maven plugin:*
>
> It shows how to create a Maven project using eclipse. But I'd prefer to 
> create it outside eclipse, like shown in the documentation for Mojo's Maven 
> plugin:
>
> [
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/archetype.html 
> 
> ]
>
>
> Is this documentation outdated? Where can I find the new one?
>

See https://github.com/gwt-maven-plugin/gwt-maven-plugin/issues/137
 

> Anyhow, I would prefer to create the project outside eclipse (like shown 
> in the documentation above). How can I do that?
>

I recommend building POMs "from scratch" (or possibly start with a simple 
JAR or WAR archetype) and then add the GWT dependencies and the 
gwt-maven-plugin to it (possibly adopting the gwt-app packaging from 
net.ltgt.gwt.maven:gwt-maven-plugin).
You can also use the WebAppCreator from GWT: java -cp 
"/path/to/gwt-dev-2.8.0.jar:/path/to/gwt-user-2.8.0.jar" 
com.google.gwt.user.tools.WebAppCreator -maven com.example.myapp.MyApp; 
this should give you something similar to the Mojo plugin's archetype, but 
using net.ltgt.gwt.maven:gwt-maven-plugin. This is not the setup I'd 
recommend (puts client and server code in the same Maven module), but it 
works (this is the setup used in GWT's samples).

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.