Yes i Know I have you use that plugin. I just find it wired that when
you create a project with the Google plugin you can change the code
and just hit refresh in browser. But I could not do that when
importing a gwt project. Any guide on just creating a simple project
from the Google plugin wizard, and converting that to a maven
project?

Thanks

Frank B

On Nov 10, 2:20 pm, Musicman75 <[email protected]> wrote:
> Hello,
>
> to use GWT 2.1 you have to use gwt-maven-plugin 2.1.0 (or 1.3.2.google
> from the google repo).
> It was released a few days ago in the maven repo.
>
> When running your app in Hosted mode (run AS Web Application) you have
> to reload the server with the reload button in the Development Mode
> view inEclipse.
>
> When starting your App in hosted mode with mvn gwt:run you have to
> restart the server with the button in the Jetty Tab.
>
> Just pressing F5 is not enought to redeploy your code into the server.
>
> On 10 Nov., 13:59, Karl <[email protected]> wrote:
>
>
>
> > Hi,
> > did you have a look at the giudes 
> > athttp://mojo.codehaus.org/gwt-maven-plugin/archetype.html
> > ? It describes how to create a gwt project with archetype:generate and
> > how to configure your pom in various ways.
>
> > Regards /Karl
>
> > On Nov 10, 11:04 am, Frank Bølviken <[email protected]> wrote:
>
> > > Anyone? :)
>
> > > Searched around the web, and I cant find one single guide on this
> > > subject which is good. There's always earlier versions of gwt, and
> > > guides which isnt working etc.
> > > Im thinking of a guide which either first creates the project via
> > > maven archetype:generate and importing intoeclipse, or a guide where
> > > you create the project ineclipsewith the google plugin, then moving
> > > source folders etc to fit the "maven kind of way" and creating a
> > > pom.xml.
>
> > > Any help would be really appreciated.
>
> > > Sincerly Frank B
>
> > > On Nov 9, 6:09 pm, Frank Bølviken <[email protected]> wrote:
>
> > > > Thanks for everyones help.. with my stupid questions. But hey... I
> > > > need to learn the best way.
> > > > Is there no help in getting a complete "guide" with the basic steps
> > > > from issuing mvn archetype:generate until deployment in a server 
> > > > ineclipsefor developing real time?
>
> > > > Thanks..
>
> > > > Frank B
>
> > > > On Nov 9, 10:40 am, Karl <[email protected]> wrote:
>
> > > > > Hi Frank!
> > > > > I had a rough last week trying to upgrade our application to 2.1, but
> > > > > I think I finally got it working when the gwt maven plugin was
> > > > > released. Relevant parts of the pom:
>
> > > > > <project>
> > > > > ...
> > > > > <properties>
> > > > >         <gwt.version>2.1.0</gwt.version>
> > > > > </properties>
> > > > > ...
> > > > > <build>
> > > > >         <finalName>${project.artifactId}</finalName>
> > > > >         
> > > > > <outputDirectory>${basedir}/war/WEB-INF/classes</outputDirectory>
> > > > >         <plugins>
> > > > >                 <!--EclipseProject Generation -->
> > > > >                 <plugin>
> > > > >                         <artifactId>maven-eclipse-plugin</artifactId>
> > > > >                         <configuration>
> > > > >                                 <additionalProjectnatures>
> > > > >                                         
> > > > > <projectnature>com.google.gwt.eclipse.core.gwtNature</
> > > > > projectnature>
> > > > >                                         
> > > > > <projectnature>com.google.gdt.eclipse.core.webAppNature</
> > > > > projectnature>
> > > > >                                 </additionalProjectnatures>
> > > > >                                 <additionalBuildcommands>
> > > > >                                         
> > > > > <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</
> > > > > buildcommand>
> > > > >                                         
> > > > > <buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</
> > > > > buildcommand>
> > > > >                                 </additionalBuildcommands>
> > > > >                                 <classpathContainers>
> > > > >                                         
> > > > > <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</
> > > > > classpathContainer>
> > > > >                                         
> > > > > <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</
> > > > > classpathContainer>
> > > > >                                 </classpathContainers>
> > > > >                                 <excludes>
> > > > >                                         <!--These are provided by the 
> > > > > GWT container -->
> > > > >                                         
> > > > > <exclude>com.google.gwt:gwt-user</exclude>
> > > > >                                         
> > > > > <exclude>com.google.gwt:gwt-dev</exclude>
> > > > >                                 </excludes>
> > > > >                         </configuration>
> > > > >                 </plugin>
> > > > >                 <plugin>
> > > > >                         <groupId>org.apache.maven.plugins</groupId>
> > > > >                         <artifactId>maven-war-plugin</artifactId>
> > > > >                         <configuration>
> > > > >                                 
> > > > > <warSourceDirectory>${basedir}/war</warSourceDirectory>
> > > > >                                 
> > > > > <webappDirectory>${basedir}/war</webappDirectory>
> > > > >                         </configuration>
> > > > >                 </plugin>
> > > > >                 <plugin>
> > > > >                         <groupId>org.codehaus.mojo</groupId>
> > > > >                         <artifactId>gwt-maven-plugin</artifactId>
> > > > >                         <version>${gwt.version}</version>
> > > > >                         <configuration>
> > > > >                                 <module>our.module</module>
> > > > >                                 
> > > > > <warSourceDirectory>${basedir}/war</warSourceDirectory>
> > > > >                                 <inplace>true</inplace>
> > > > >                                 <i18nConstantsBundles>
> > > > >                                         
> > > > > <i18nConstantsBundle>our.gwt.shared.i18n.OurConstants</
> > > > > i18nConstantsBundle>
> > > > >                                 </i18nConstantsBundles>
> > > > >                                 <i18nMessagesBundles>
> > > > >                                         
> > > > > <i18nMessagesBundle>our.gwt.shared.i18n.OurMessages</
> > > > > i18nMessagesBundle>
> > > > >                                 </i18nMessagesBundles>
> > > > >                                 <localWorkers>2</localWorkers>
> > > > >                         </configuration>
> > > > >                         <executions>
> > > > >                                 <execution>
> > > > >                                         <id>Generation</id>
> > > > >                                         
> > > > > <phase>generate-sources</phase>
> > > > >                                         <goals>
> > > > >                                                 
> > > > > <goal>generateAsync</goal>
> > > > >                                                 <goal>i18n</goal>
> > > > >                                         </goals>
> > > > >                                 </execution>
> > > > >                                 <execution>
> > > > >                                         <id>Compilation</id>
> > > > >                                         <phase>prepare-package</phase>
> > > > >                                         <goals>
> > > > >                                                 <goal>compile</goal>
> > > > >                                         </goals>
> > > > >                                 </execution>
> > > > >                         </executions>
> > > > >                 </plugin>
> > > > >         </plugins>
> > > > > </build>
> > > > > ...
> > > > > <!-- Dependencies -->
> > > > > <dependencies>
> > > > > ...
> > > > > <!-- GWT -->
> > > > >         <dependency>
> > > > >                 <groupId>com.google.gwt</groupId>
> > > > >                 <artifactId>gwt-servlet</artifactId>
> > > > >                 <version>${gwt.version}</version>
> > > > >                 <scope>runtime</scope>
> > > > >         </dependency>
> > > > >         <dependency>
> > > > >                 <groupId>com.google.gwt</groupId>
> > > > >                 <artifactId>gwt-user</artifactId>
> > > > >                 <version>${gwt.version}</version>
> > > > >                 <scope>provided</scope>
> > > > >         </dependency>
> > > > > ...
> > > > > </dependencies>
> > > > > </project>
>
> > > > > The maveneclipseplugin should include the GWT SDK which is set as
> > > > > default in your project this way. One minor obstacle remains though:
> > > > > when running the debugger (developer mode) ineclipseit looks for /
> > > > > your/home/.m2/repository/com/google/gwt/gwt-servlet/2.1.0/gwt-
> > > > > servlet.jar which does not exist. I solved this by copying and
> > > > > renaming gwt-servlet-2.1.0.jar in the same directory. I hope this
> > > > > helps out.
>
> > > > > Regards /Karl
>
> > > > > On Nov 7, 10:50 pm, Frank Bølviken <[email protected]> wrote:> 
> > > > > Hi,
>
> > > > > > Im so tired of searching around the internet and finding no good
> > > > > > answers to this subject.
> > > > > > Do anyone know of any good guide for creating a gwt 2.1 project in
> > > > > > maven, and fully integrating it witheclipse?
> > > > > > Gwt 2.1 is suppoed to be easier
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to