Today i tried to get a sample project with springsource tool suite, spring roo and gwt running.

If you follow the tutorials you finally reach a step where you have to enter:

[codesyntax lang=“bash“]

web gwt setup

[/codesyntax]

After that one you will have an error in your project which you can see under markers:

[codesyntax lang=“bash“]

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:exec-maven-plugin:1.2:exec (execution: default, phase: process-classes)

[/codesyntax]

I know almost nothing about that maven thing, and the internet in that case does not point to the right solution at first, but finally i found it on the spring forums: http://forum.springsource.org/showthread.php?116544-Can-t-compile-with-GWT-2.4&p=385963&highlight=#post385963

It says you have to insert:

[codesyntax lang=“xml“]

<pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse 
                m2e settings only. It has no influence on the Maven build itself. -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>exec-maven-plugin</artifactId>
                                    <versionRange>[1.2,)</versionRange>
                                    <goals>
                                        <goal>exec</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>

[/codesyntax]

in your pom.xml. Between the tags, but not inside the tags.

After that you have to right click your project in sts, go to maven -> update project configuration and select your project.

That’s it, the error is gone. And dont forget to save 😉