Problem with GWT Maven Plugin not finding ui.xml Files

98 views
Skip to first unread message

Nico R.

unread,
Mar 9, 2011, 8:41:27 AM3/9/11
to Codehaus Mojo gwt-maven-plugin Users
Hey guys,

I have a problem with using the resource function of the maven gwt
plugin with a multi module setup.
I have just abandoned the manual <resource> section in the build part
of my submodule pom.xml, in favor of letting the GWT Maven Plugin
finding the necessary files itself by analysing the gwt Modules in the
project.

Works great, I found though that the packaged jar is missing
all .ui.xml Files, that are necessary for the use of UiBinder for
compilation in my main module.

I'm using GWT 2.2 with GWT Maven Plugin 2.2.
My ui.xml files are located with the appropriate Widgets under src/
main/java and not src/main/resources.

Is this a known issue?

Here's how I use the plugin in my pom.xml :

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<goals>
<!-- Packe nötige Java und gwt.xml Files in Jar -->
<goal>resources</goal>
<!-- Fuehre auch GWT Tests durch -->
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>

I even tried to add the packaging of the ui.xml files by adding this
code to the pom.xml:

<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.ui.xml</include>
</includes>
</resource>
</resources>

But this now apparently canceled all the actions of the GWT Maven
Plugin and I ended up with only the ui.xml Files in my jar, but no
gwt.xml or .java....

Cheers,
Nico

José Antonio Sánchez

unread,
Mar 10, 2011, 10:05:36 AM3/10/11
to Codehaus Mojo gwt-maven-plugin Users
I think it's a bug with 2.2.0 version. I was using it without the
resources configuration with 2.1.0 and it was working.

nicolas de loof

unread,
Mar 10, 2011, 10:17:21 AM3/10/11
to codehaus-mojo-gwt-...@googlegroups.com, José Antonio Sánchez
Any chance it relates to http://jira.codehaus.org/browse/MGWT-230 ?

2011/3/10 José Antonio Sánchez <geta...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.


José Antonio Sánchez

unread,
Mar 10, 2011, 10:34:44 AM3/10/11
to Codehaus Mojo gwt-maven-plugin Users
Probably, it was working with 2.1.0, I haven't tested 2.1.0-1 and it's
for sure that it's not working with 2.2.0. If the way the resources
are copied was changed in between, probably it has something to do
with this problem.

On Mar 10, 4:17 pm, nicolas de loof <nicolas.del...@gmail.com> wrote:
> Any chance it relates tohttp://jira.codehaus.org/browse/MGWT-230?
>
> 2011/3/10 José Antonio Sánchez <getace...@gmail.com>
> >http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?h....

nicolas de loof

unread,
Mar 10, 2011, 10:36:29 AM3/10/11
to codehaus-mojo-gwt-...@googlegroups.com, José Antonio Sánchez
There was only a code move between releases
Can you check it occurs with 2.1.0-1 to reduce the history search ?

I wonder it even worked as the inclusion pattern is "**/*.java", that should not match ui.xml files

2011/3/10 José Antonio Sánchez <geta...@gmail.com>
Probably, it was working with 2.1.0, I haven't tested 2.1.0-1 and it's

José Antonio Sánchez

unread,
Mar 10, 2011, 11:24:36 AM3/10/11
to nicolas de loof, codehaus-mojo-gwt-...@googlegroups.com
I'm sorry. It doesn't have anything to do with the aforementioned change. I tested with 2.1.0 and still it doesn't include de ui.xml files.
Saludos

José Antonio Sánchez


2011/3/10 nicolas de loof <nicolas...@gmail.com>

nicolas de loof

unread,
Mar 10, 2011, 11:30:04 AM3/10/11
to José Antonio Sánchez, codehaus-mojo-gwt-...@googlegroups.com
Right, 
please open a new Jira ticket as feature request
Reply all
Reply to author
Forward
0 new messages