Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Thomas,

I would not choose the build tool depending on wether eclipse is or is not 
able to show it's structure correctly.
It seems that the "modular webapp" project structure is hierarchical with 
three subfolders. Using Juan's advice, I can see this structure also in 
eclipse now. So everything seems to be ok, for now. :-)

To make it perfect, I'd like to give different names to the subfolders / 
subprojects.
By default, the subprojects repeat most of the main project's name, like 
this:

   - myprojects-apps-app1
  - myprojects-apps-app1-client
  - myprojects-apps-app1-server
  - myprojects-apps-app1-shared
   
I would like to make this more compact, like this:

   - myprojects-apps-app1
  - client
  - server
  - shared
   
(Note that I am referring to the project/folder names, not the package 
names.)
Maybe that I still do not set the groupId and artefactId correcty...

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.


Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Juan!

It's only enabled in Project explorer view (in package explorer view 
> doesn't work)
>
 
You're totally right! I didn't use the project explorer view before, but it 
shows the hierarchical structure of the project!
This seems to be a solution 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.


Re: Which maven archetype for GWT applications?

2017-02-13 Thread Thomas Broyer


On Monday, February 13, 2017 at 6:15:15 PM UTC+1, Magnus wrote:
>
> Hi Juan,
>
> thanks, but my package presentation is already set to "hierarchical".
> I would be glad if I could fix this with an eclipse setting...
>

Maven doesn't allow you to use different classpaths for different subsets 
of the source tree; you have to use different Maven modules for that, which 
means moving files around.
So you have two possibilities:

   - don't split your client/shared/server code and use the same classpath 
   for all (i.e. put server-side dependencies into the classpath for the GWT 
   compiler and devmode, and vice versa put gwt-user and gwt-dev, and other 
   GWT dependencies into your classpath for compiling your server-side code; 
   this could slow the build and cause conflicts, some of them possibly only 
   detected at runtime); it'll also complexify your Maven configuration (POM)
   - don't use Maven. Maybe use Gradle instead; though I'm not sure if/how 
   "subsetting" the source tree is well-supported by the Gradle/Eclipse 
   integrations (either Buildship or the gradle eclipse plugin), but chances 
   are good that you could make it work eventually.

(the third being to keep your current build tool, or possibly use e.g. Ant, 
which would however mean configuring your Eclipse projects mostly "by hand")

-- 
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: Which maven archetype for GWT applications?

2017-02-13 Thread Juan Pablo Gardella
It's only enabled in Project explorer view (in package explorer view
doesn't work)

[image: pasted1]


On Mon, 13 Feb 2017 at 14:15 Magnus  wrote:

> Hi Juan,
>
> thanks, but my package presentation is already set to "hierarchical".
> I would be glad if I could fix this with an eclipse setting...
>
> 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.
>

-- 
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: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hi Juan,

thanks, but my package presentation is already set to "hierarchical".
I would be glad if I could fix this with an eclipse setting...

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.


Re: Which maven archetype for GWT applications?

2017-02-13 Thread Magnus
Hello Freddy!

Splitting your server / shared / client code in different module will make 
> your life easier if you do it at the beginning of your project.
>

I am sure you are right. But why is this hierarchical arrangement (which is 
also hierarchical at the file system) presented as 4 top-level projects in 
eclipse?




This is a problem for me...

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.


Re: Which maven archetype for GWT applications?

2017-02-13 Thread Ignacio Baca Moreno-Torres
For client side only and lib only project (so only one module) you can see
an example here:
https://github.com/tbroyer/gwt-maven-plugin/tree/master/src/it
Quite simple, maybe adding this use cases as archetype is a good idea, but
IMO it's so simple that using the simple maven archetype and adding those
changes is not a problem either.

On Mon, Feb 13, 2017 at 10:26 AM David  wrote:

> There is an alternative, like they do in guava for example. They have a
> pure java guava.jar and then create a guava-gwt.jar that includes the
> sources, supersources and fieldserializers for gwt projects. This requires
> that you use annotations like GwtCompatible or GwtIncompatible and filter
> the sources to be included in the gwt jar.
>
> I tend to use this approach for reusable components since it makes it
> easier to avoid transitive dependencies that you don't need on the server.
>
> For the main application I use the tbroyer multimodule archetype. Although
> often the shared module is no longer needed since most of the shared code
> is already in the gwt-lib modules.
>
> Yes that is a lot of modules but I'm not talking about a small project.
> Lots of these modules are reused in other projects, so its best to have
> them clearly isolated.
>
>
> On Mon, 13 Feb 2017 at 09:55, Freddy Boucher 
> wrote:
>
> The recommended GWT Archetypes nowadays is one of
> https://github.com/tbroyer/gwt-maven-archetypes
>
> It uses https://github.com/tbroyer/gwt-maven-plugin
>
> And why you should use one of them:
>
> Splitting your server / shared / client code in different module will make
> your life easier if you do it at the beginning of your project.
>
>
>
> On Monday, February 13, 2017 at 1:56:25 AM UTC+11, Magnus wrote:
>
> Hello,
>
> I am looking for a suitable archetype for building GWT applications with
> maven.
>
> I have tried "Codehaus" and "modular-webapp":
>
>- Codehaus
>With the codehaus archetype, I get a lot of errors when importing the
>generated project in eclipse.
>It seems that there are plugins missing
>
>- modular-web-app
>This would be my favorite one, but after importing it into eclipse, it
>leaves me with 4 (!) top-level projects (1 main and 3 sub-projects).
>Maybe the archetype is good, but this is a behavior that I cannot
>accept when dealing with many projects. (Can you avoid this?)
>
> I know that there are several methods of using maven with eclipse and that
> there are different plugins.
> Maybe the errors I saw with Codehaus result from this.
>
> However, what can you recommend?
>
> 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.
>
> --
> 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.
>

-- 
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: Which maven archetype for GWT applications?

2017-02-13 Thread David
There is an alternative, like they do in guava for example. They have a
pure java guava.jar and then create a guava-gwt.jar that includes the
sources, supersources and fieldserializers for gwt projects. This requires
that you use annotations like GwtCompatible or GwtIncompatible and filter
the sources to be included in the gwt jar.

I tend to use this approach for reusable components since it makes it
easier to avoid transitive dependencies that you don't need on the server.

For the main application I use the tbroyer multimodule archetype. Although
often the shared module is no longer needed since most of the shared code
is already in the gwt-lib modules.

Yes that is a lot of modules but I'm not talking about a small project.
Lots of these modules are reused in other projects, so its best to have
them clearly isolated.


On Mon, 13 Feb 2017 at 09:55, Freddy Boucher 
wrote:

> The recommended GWT Archetypes nowadays is one of
> https://github.com/tbroyer/gwt-maven-archetypes
>
> It uses https://github.com/tbroyer/gwt-maven-plugin
>
> And why you should use one of them:
>
> Splitting your server / shared / client code in different module will make
> your life easier if you do it at the beginning of your project.
>
>
>
> On Monday, February 13, 2017 at 1:56:25 AM UTC+11, Magnus wrote:
>
> Hello,
>
> I am looking for a suitable archetype for building GWT applications with
> maven.
>
> I have tried "Codehaus" and "modular-webapp":
>
>- Codehaus
>With the codehaus archetype, I get a lot of errors when importing the
>generated project in eclipse.
>It seems that there are plugins missing
>
>- modular-web-app
>This would be my favorite one, but after importing it into eclipse, it
>leaves me with 4 (!) top-level projects (1 main and 3 sub-projects).
>Maybe the archetype is good, but this is a behavior that I cannot
>accept when dealing with many projects. (Can you avoid this?)
>
> I know that there are several methods of using maven with eclipse and that
> there are different plugins.
> Maybe the errors I saw with Codehaus result from this.
>
> However, what can you recommend?
>
> 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.
>

-- 
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: Which maven archetype for GWT applications?

2017-02-13 Thread Freddy Boucher
The recommended GWT Archetypes nowadays is one of 
https://github.com/tbroyer/gwt-maven-archetypes

It uses https://github.com/tbroyer/gwt-maven-plugin

And why you should use one of them:

Splitting your server / shared / client code in different module will make 
your life easier if you do it at the beginning of your project.



On Monday, February 13, 2017 at 1:56:25 AM UTC+11, Magnus wrote:
>
> Hello,
>
> I am looking for a suitable archetype for building GWT applications with 
> maven.
>
> I have tried "Codehaus" and "modular-webapp":
>
>- Codehaus
>With the codehaus archetype, I get a lot of errors when importing the 
>generated project in eclipse.
>It seems that there are plugins missing
>
>- modular-web-app
>This would be my favorite one, but after importing it into eclipse, it 
>leaves me with 4 (!) top-level projects (1 main and 3 sub-projects).
>Maybe the archetype is good, but this is a behavior that I cannot 
>accept when dealing with many projects. (Can you avoid this?)
>
> I know that there are several methods of using maven with eclipse and that 
> there are different plugins.
> Maybe the errors I saw with Codehaus result from this.
>
> However, what can you recommend?
>
> 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.


Re: Which maven archetype for GWT applications?

2017-02-12 Thread Magnus
Hello,

thank you! It looks interesting.
But I think it would be better to be independend of a web page, wouldn't it?

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.


Re: Which maven archetype for GWT applications?

2017-02-12 Thread zakaria amine
Have you tried GWT project generator: 
https://gwt-project-generator.cfapps.io/ ? It generates a simple project 
with an entry point  

Le dimanche 12 février 2017 15:56:25 UTC+1, Magnus a écrit :
>
> Hello,
>
> I am looking for a suitable archetype for building GWT applications with 
> maven.
>
> I have tried "Codehaus" and "modular-webapp":
>
>- Codehaus
>With the codehaus archetype, I get a lot of errors when importing the 
>generated project in eclipse.
>It seems that there are plugins missing
>
>- modular-web-app
>This would be my favorite one, but after importing it into eclipse, it 
>leaves me with 4 (!) top-level projects (1 main and 3 sub-projects).
>Maybe the archetype is good, but this is a behavior that I cannot 
>accept when dealing with many projects. (Can you avoid this?)
>
> I know that there are several methods of using maven with eclipse and that 
> there are different plugins.
> Maybe the errors I saw with Codehaus result from this.
>
> However, what can you recommend?
>
> 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.


Which maven archetype for GWT applications?

2017-02-12 Thread Magnus
Hello,

I am looking for a suitable archetype for building GWT applications with 
maven.

I have tried "Codehaus" and "modular-webapp":

   - Codehaus
   With the codehaus archetype, I get a lot of errors when importing the 
   generated project in eclipse.
   It seems that there are plugins missing
   
   - modular-web-app
   This would be my favorite one, but after importing it into eclipse, it 
   leaves me with 4 (!) top-level projects (1 main and 3 sub-projects).
   Maybe the archetype is good, but this is a behavior that I cannot accept 
   when dealing with many projects. (Can you avoid this?)
   
I know that there are several methods of using maven with eclipse and that 
there are different plugins.
Maybe the errors I saw with Codehaus result from this.

However, what can you recommend?

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.