Monday, September 9, 2013

Re: GWT does not respect maven-war-plugin configuration

Thanks for help. :) I'll file that.

W dniu poniedziałek, 9 września 2013 12:41:17 UTC+1 użytkownik Thomas Broyer napisał:


On Monday, September 9, 2013 1:09:18 PM UTC+2, falconepl wrote:
I've got the following configuration within my Maven's pom.xml file:

    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <name>Maven Plugin Repository</name>
            <url>http://repo2.maven.org/maven2/</url>
        </pluginRepository>
    </pluginRepositories>

    (...)

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.4</version>
        <configuration>
            <warSourceDirectory>${basedir}/war</warSourceDirectory>
            <archiveClasses>true</archiveClasses>
        </configuration>
    </plugin>


The problem is that GWT seems to not take that configuration seriously. After choosing Maven -> Update Project... I receive an error:

    WAR source directory /MyProject/src/main/webapp is missing

which suggests that GWT tries to use default WAR directory. After Maven repository clean, deleting Eclipse's .settings folder content and executing Update Project... again, Eclipse/GWT recreates com.google.gdt.eclipse.core.prefs file which contains property:

    warSrcDir=src/main/webapp

Changing manually WAR directory field at project -> Properties -> Google -> Web Application to "war" solves the problem, but every time I execute Update Project..., Eclipse/GWT sets WAR directory back to "src/main/webapp".

Thanks for any help. :)

Your issue is with the Google Plugin for Eclipse, not GWT proper, so you'd have better chances on https://groups.google.com/d/forum/google-plugin-eclipse

 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment