--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/npnUeQyrLXkJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
It comes without saying (for me at least) that Java sources would go into src/main/java and "public resources" (i.e. the things within **/public/**, e.g. the CSS and image files from the themes) into src/main/resources
everything in src/main/java
super-sources in src/main/resources
everything in src/main/resources
everything in src/main/resources
super-sources in src/main/super (or gwt-super, or some other name, let's discuss that later as I suspect it's a bikeshed)
Also feel free to propose a fourth alternative.
Placing the super-sources in src/main/resources may also cause filter-related "surprises."
Also feel free to propose a fourth alternative.I'd propose keeping non-super sources in src/main/java, public resources in src/main/resources, and super-sources in src/main/super. As different as GWT projects may be from other "normal" Java projects, I think there's still value in keeping to convention if it's possible and sensible to do so.
This is option 3 then (you agreed that "It comes without saying (for me at least) that Java sources would go into src/main/java", and I suppose that by "public resources" you mean not only **/public/** but also *.ui.xml and the like)
I vote for alternative 1, as it complies with maven convention and I had no problem at all with this structure.
I fully understand that we'll have to make some concessions for GWTitself to make it easier for Google (even though Matthew actually told
me the opposite);
Le 16 nov. 2012 17:59, "Daniel Kurka" <kurka....@gmail.com> a écrit :
>
> Hi Thomas,
>
> I have been out on devoxx and haven`t had time to cast a vote yet.
>
> I think its a good idea to go with a separate package like src/main/super for super sourcing.
>
> Why are we thinking of moving resources out of src/main/java,
Depends where you come from ;-)
Maven users where (almost) ALL complaining when GPE didn't see their files in src/main/resources.
If you think of src/main/java as the set of files processed by javac, then gwt.xml, ui.xml and the like should obviously go to resources (or some other, GWT specific, folder).
> what is the main advantage here?
Separation of concerns (even though java sources will end up processed the same as gwt.xml, they're also processed by javac, and generally not filtered), filtering, freedom (e.g. one might want to put the gwt.xml at the root of resources and define <targetPath> to relocate them in the appropriate package in the generated JAR, it'd make navigation easier in Eclipse – IntelliJ has a package presentation which makes this pointless –; I could see me doing that for super-sources in case I have a single module in my lib)
Honestly, it's mostly a matter of taste, and both would work and in 99% of the cases, but src/main/resources feels more "mavenish" (note: I was a proponent of src/main/java some time ago, I now believe it was mostly due to tooling).
In multi module projects, it is quite nice to have the Java sources and *.gwt.xml files in a single package in src/main/java. Spreading it out into the resource folder would make such projects a bit more difficult to maintain/navigate.Sincerely,Joseph
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sxkhAHV--CkJ.
In multi module projects, it is quite nice to have the Java sources and *.gwt.xml files in a single package in src/main/java. Spreading it out into the resource folder would make such projects a bit more difficult to maintain/navigate.Sincerely,Joseph
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
HumSorry to say, that :
On Fri, Nov 16, 2012 at 2:34 PM, Thomas Broyer <t.br...@gmail.com> wrote:
Poll results: option 3, aka src/main/resources + src/main/super.Bonus: it apparently works with the latest version of the GPE (wasn't the case before, where it –basically– only looked into src/main/java)
Is not true :(In fact, from a fresh project, the *.gwt.xml file are not detected if they lies in src/main/resources ...Once the Launch configuration exists the file can be moved from src/main/java to src/main/resources.
----To view this discussion on the web visit https://groups.google.com/d/msg/codehaus-mojo-gwt-maven-plugin-users/-/JXHDJbf3zW0J.
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.
--
"Computers are useless. They can only give you answers."
- Pablo Picasso -You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
IMHO GEP is to blame, please note that is is only the new GWT Launch UI that suffer from this issue ! If you move the *.gwt.xml file to "resources" afterward it will work.I will take a closer look asap.
To post to this group, send email to codehaus-mojo-gwt-maven-plugin...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-plugin-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.
--
"Computers are useless. They can only give you answers."
- Pablo Picasso -
--You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To post to this group, send email to codehaus-mojo-gwt-maven-plugin...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-plugin-users+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-mojo-gwt-maven-plugin-users+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
Thomas,How does the plugin support supersource today. I've tried to piece this together from multiple searches and have something close to your option 3, but it's not clear.1). How is the plugin configured to use main/src/super?
2). If src/main/super is an overlay onto src/main/java then how does the super-souce path (which must be relative) work within the module XML? Or is it intended that you'll still do "path doubling" under super? (e.g., src/main/super/com/foo/super/com/foo/Bar.java for a module def in src/main/resources/com/foo/Foo.gwt.xml)
Also, I'll throw-in an alternative:src/main/java/resources/ (Would we ever put Android "res" here? Why is GWT any different?)gwt/super/resources/
Thanks,RB
--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-mojo-gwt-maven-...@googlegroups.com.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Thomas,Thanks very much for the response.First, is there any way you can share a POM from one of your projects -- or ideally point me at an entire open source project that uses it?
Many things aren't clear (to me) from the docs. Examples:1). You say add a <resource> tag.
The problem is if I add a single <resource> tag then the default src/main/resources seems to be overridden, so my guess is you mean something like the following added to the <build> tag:<resources><resource><directory>src/main/resources</directory></resource>
<resource><directory>src/main/super</directory><targetPath>com/foo/super</targetPath></resource>
</resources>
And, in com.foo.Foo.gwt.xml contains<super-source path="super"/>
Again, it's a guess since I still don't have hello-supsersource working.2). The comments regarding goals are conflicting. E.g., for tests to run it's suggested to add:<execution><goals><goal>test</goal></goals></execution>But to get source-jar to run as part of install you need something like:<execution><phase>install</phase><goals><goal>source-jar</goal></goals></execution>
3). Giving up on source-jar for the moment (i.e., just having the top config), when I run tests, they just hang and timeout. In fact, if I just create a blank project from the archetype, that's what happens:[INFO] Running junit.framework.TestSuite@29edc073Process 1361122241179 is killed.[WARNING] Forked JVM has been killed on time-out after 60 seconds
4). Frequently, if I don't run clean first, the tests fails with exceptions: e.g.,[INFO] Running com.foo.FooTest[INFO] [ERROR] Failure in unit cache map load.[INFO] java.util.concurrent.ExecutionException: java.lang.StackOverflowError
Hmm, there's https://github.com/tbroyer/gwt-sandbox/blob/master/user/gwt-user-core/pom.xml but this is work in progress, and unnecessary complicated in some places. This is ongoing work to moving GWT itself to use Maven as the build system.Many things aren't clear (to me) from the docs. Examples:
1). You say add a <resource> tag.
The problem is if I add a single <resource> tag then the default src/main/resources seems to be overridden, so my guess is you mean something like the following added to the <build> tag:<resources><resource><directory>src/main/resources</directory></resource><resource><directory>src/main/super</directory><targetPath>com/foo/super</targetPath></resource></resources>Yes, that's how Maven works. src/main/resources is only the default if nothing's specified.
And, in com.foo.Foo.gwt.xml contains<super-source path="super"/>Yes.Again, it's a guess since I still don't have hello-supsersource working.2). The comments regarding goals are conflicting. E.g., for tests to run it's suggested to add:<execution><goals><goal>test</goal></goals></execution>But to get source-jar to run as part of install you need something like:<execution><phase>install</phase>
<goals><goal>source-jar</goal></goals></execution>If src/main/java and src/main/super are declared as resources, then the sources will be added to the JAR, and you don't need a source-jar.
3). Giving up on source-jar for the moment (i.e., just having the top config), when I run tests, they just hang and timeout. In fact, if I just create a blank project from the archetype, that's what happens:[INFO] Running junit.framework.TestSuite@29edc073Process 1361122241179 is killed.[WARNING] Forked JVM has been killed on time-out after 60 secondsIs this from surefire:test, failsafe:integration-test or gwt:test?
4). Frequently, if I don't run clean first, the tests fails with exceptions: e.g.,[INFO] Running com.foo.FooTest[INFO] [ERROR] Failure in unit cache map load.[INFO] java.util.concurrent.ExecutionException: java.lang.StackOverflowErrorHmm, this is a "pure GWT" error, unrelated to Maven (until proven otherwise); have you searched the GWT issue tracker? Errors in Unit cache loading are "expected" when upgrading GWT or changing JVM (GWT classes don't have a serialization ID), but obviously not in other situations.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-mojo-gwt-maven-plugin-users+unsubscribe@googlegroups.com.
To post to this group, send email to codehaus-mojo-gwt-maven-plugin...@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I think a major goal should be to cooperate with other container plugins, specifically Jetty. I've been struggling with getting the Jetty plugin to fully cooperate w/ the gwt plugin and am astounded at how hard it is to:1. Get my server code to be updated without a server restart (if the compiled code goes in WEB-INF/classes, just bouncing the webapp is enough.
2. Running in dev mode w/o having to do a compile to get the code in the right place in the exploded src/main/webapp directory
3. Start the jetty container w/ also doing a gwt compile (it should just compile the server side code)
I'd like to see an option in the GWT plugin where it runs much like it does with the GWT embedded jetty but with the jetty maven plugin instead.Why do I want the jetty plugin instead of the embedded jetty:1. I get a later version of Jetty2. I can customize Jetty more easily (authentication, jdbc, etc)3. I can control the startup of Jetty more easily4. I can use the same mvn to run and control a production version of Jetty