Project Maven, GWT and Eclipse

I am trying to set up a new web project using the latest Maven, GWT and Eclipse. I am trying to create it with an accessible archetype from the GWT Maven Plugin with the command:

mvn archetype: generate-DarchetypeGroupId = org.codehaus.mojo -DarchetypeArtifactId = gwt-maven-plugin -DarchetypeVersion = 2.4.0 -DarchetypeRepository = repo1.maven.org

Launching mvn gwt: launching a project build, launching applications, and everything seems to be in order. The problem occurs when I try to import this project as a "Maven Project" in Eclipse Indigo. I get a mvn warning

Description Type of resource path location maven-war-plugin goal "inplace", "exploded", "manifest" is ignored by m2e pom.xml / contactmanager 93 Maven Project Build Lifecycle Mapping programming problem

and many java errors like

  • GreetingService resource path location type cannot be resolved for type GwtTestContactManager.java/contactmanager/src/test/java/com/jeffmaury/contactmanager/client

  • Missing asynchronous GreetingServiceAsync interface

Something seems to have changed, and the latest gwt, m2eclipse, eclipse indigo and mvn cannot work together properly.

Is there a way to fix this basic GWT project after importing into Eclipse? And run this generated application from the IDE?

Btw (, http://riadiscuss.jeffmaury.com/2011/06/tutorial-maven-gwt-plugin-google.html), . ...


.

+1
2

- pom:

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-war-plugin</artifactId>
                                    <versionRange>[2.0,)</versionRange>
                                    <goals>
                                        <goal>inplace</goal>
                                        <goal>exploded</goal>
                                        <goal>manifest</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>
+3

maven gwt - , .... , , ...

mvn eclipse: eclipse eclipse

mvn gwt: debug

eclipse 8000 ...

, eclipse....

100%, , ... ,

+2

All Articles