[jboss-user] [JBoss Tools] - JBT 3.3.0.Beta3 fails to import Maven GWT jar project

Guido Bonazza do-not-reply at jboss.com
Wed May 30 06:06:44 EDT 2012


Guido Bonazza [https://community.jboss.org/people/guidbona] created the discussion

"JBT 3.3.0.Beta3 fails to import Maven GWT jar project"

To view the discussion, visit: https://community.jboss.org/message/738732#738732

--------------------------------------------------------------
It seems that Beta3 introduced the following problem:
If I try to import a maven jar project that uses gwt-maven-plugin to generate async interfaces for RPC services (generateAsync goal) an error message appears saying that:

An internal error occurred during: "Updating Maven Configuration".
assertion failed: No web content folder was found in project gwt-utility-example

If I then try to manually add the target/generated-sources/gwt folder to the build path (which isn't done automatically, but that's another story I suppose) Eclipse complains that

Project configuration is not up-to-date with pom.xml. Run project configuration update

Trying to quick-fix this problem removes the target/generated-sources/gwt folder from the build path.

Here's my pom.xml (the complete project is attached):
{code:xml}
<project xmlns=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0  http://maven.apache.org/xsd/maven-4.0.0.xsd http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.example</groupId>
    <artifactId>gwt-utility-example</artifactId>
    <version>0.0.1-SNAPSHOT</version>


    <properties>
        <maven.compiler.source>1.6</maven.compiler.source>
        <maven.compiler.target>1.6</maven.compiler.target>
    </properties>


    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.4.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generateAsync</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <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>
                                            gwt-maven-plugin
                                        </artifactId>
                                        <versionRange>
                                            [2.1.0-1,)
                                        </versionRange>
                                        <goals>
                                            <goal>resources</goal>
                                            <goal>generateAsync</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <execute/>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>


    <dependencies>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>2.4.0</version>
        </dependency>
    </dependencies>

</project>
{code}
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738732#738732]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120530/1967a64f/attachment.html 


More information about the jboss-user mailing list