I agree...writing compiled code under a source tree is a bad idea. As a matter of fact, while trying to upgrade to GWT 1.6.4 i deleted my images directory by accident when i was cleaning things up under my src/main/webapp directory.
On Sat, Apr 18, 2009 at 10:05 AM, Farrukh Najmi < farr...@wellfleetsoftware.com> wrote: > > For others benefit, here is how I have my pom (see lines in bold font for > relevant config): > > <build> > *<outputDirectory>target/hosted/WEB-INF/classes</outputDirectory>* > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>gwt-maven-plugin</artifactId> > <version>1.1-SNAPSHOT</version> > <configuration> > *<output>${basedir}/target/hosted</output>* > <module>com.test.CalendarApp</module> > <runTarget>com.test.CalendarApp/Calendar.html</runTarget> > </configuration> > <executions> > <execution> > <goals> > <goal>compile</goal> > <goal>test</goal> > </goals> > </execution> > </executions> > </plugin> > ... > <plugins> > ... > <build> > > It seems to me that writing generated output in the src tree (rather than > the target tree) is not good maven practice. > I do not know enough of the issues involved but I feel we should change the > default for the plugin to be a directory under > target tree and still have normal behavior. What do you and others think of > changing the defaults to something like what I show above in bold? Thanks. > > > nicolas de loof wrote: > > > Gwt compiler output is set by default to webapp source folder so that you > can easily startup a "noserver" server using mvn jetty:run or equivalent > tomcat setup. > > You can override this by configuration if you wish, but this doesn't > breack building the WAR anyway. > > Still need to improve the doc ;) > > 2009/4/18 Farrukh Najmi <farr...@wellfleetsoftware.com> > >> >> BTW I generated my project structure via: >> >> mvn -Dgwt.version=1.6.0 archetype:generate >> -DarchetypeGroupId=org.codehaus.mojo \ >> -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=1.1-SNAPSHOT >> -DgroupId=com.test -DartifactId=gwt-latest >> >> Lastly, I am not sure why I am getting generated files in the following >> directories: >> >> /src/main/webapp/.gwt-tmp >> src/main/webapp/com.test.Application >> >> Why are these not being written to my target tree. >> >> In case you need it my very minimal project is available as a zip here: >> >> <http://www.wellfleetsoftware.com/files/gwt-latest.zip><http://www.wellfleetsoftware.com/files/gwt-latest.zip> >> >> > > -- > Regards, > Farrukh > > Web: http://www.wellfleetsoftware.com > > --------------------------------------------------------------------- To > unsubscribe from this list, please visit: > http://xircles.codehaus.org/manage_email >