On Tuesday, May 15, 2012 3:32:54 PM UTC+2, tong123123 wrote: > > Great thanks for your reply. > > In fact, I am very new to maven, there is many thing I still do not > understand. > 1) is GWT Maven Plugin = M2Eclipse + Google Eclipse plugins? >
No. gwt-maven-plugin is a Maven plugin that allows you to easily launch the GWT Compiler or DevMode (and several other tools: I18NSync, etc.) from Maven (configured in your POM). You could do all of that using the maven-antrun-plugin or exec-maven-plugin; gwt-maven-plugin just makes it "more Mavenish". M2Eclipse is an Eclipse plugin to integrate Eclipse with Maven (automatically configure Eclipse projects from Maven POMs, for instance) and the Google Plugin for Eclipse integrates with both of them (when M2Eclipse is present) to automatically configure your Eclipse project with the GWT nature if it finds the gwt-maven-plugin and gwt-user dependency in your POM (so you can use "Run as… Web Application" from within Eclipse, for instance, and benefit from the GWT-RPC interface validation, and several other GWT-specific Eclipse features. > I use eclipse install new software and get the M2Eclipse from following > site: > http://download.eclipse.org/technology/m2e/releases > and my eclipse already installed "Google Plugin for Eclipse", is this > means I already have GWT Maven Plugin? > No. But as with everything with Maven, it'll just be downloaded the first time Maven needs it (when building your project). 2) as stated in > http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html > there should be ""Goals to run on project import" in eclipse windows > > preferences > maven > but my eclipse has no this option!! > also, what is the setting for? I see the site remind to add > "process-resources" before import project > You shouldn't have anything special to configure in Eclipse. The default configuration should be OK. (it looks like this configuration has been removed from M2Eclipse) > 3) when I choose > New project > maven > maven project > > use default workspace location > > catalog choose Nexus Indexer > error!! > No archetypes currently available. The archetype list will refresh when > the indexes finish updating. > why this error will occur? > Sorry, no idea (well, see below). Ask on the M2Eclipse mailing list, or on StackOverflow. > 4) when restart eclipse, the status bar (bottom bar) always show > "Updating index centralhttp//repo1.maven.org/maven2: fetching > http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.gz" > and it take a long time. > what is it doing? > AFAIK, it downloads the "index" (listing which artifacts are available, in which versions, for fast searches on your machine, without the need to reach the network) from Maven Central (the place where most maven artifacts –including GWT ones– are deployed; which explains why the index is big, and thus takes time to download). -- 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/-/N5P1clwslFsJ. 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.
