Alternative for gwt:resources in Multi-module Gwt project

111 views
Skip to first unread message

Vlad Skarzhevskyy

unread,
Nov 6, 2010, 4:01:57 PM11/6/10
to codehaus-mojo-gwt-...@googlegroups.com
We are using Eclipse and Maven for development. When we used to copy java files to 'target\classes' (using maven) some times resource out of sync was happening in Eclipse. Especially when you do search for text files. In older versions of  Google eclipse plugin we also used to encounter problems when wrong sources had been taken during compilation. To solve it we used our own way to create jars.... On 'prepare-package' copy java files and on 'package' remove copied java files.

See ant tasks in line 551 for this  https://pyx4j.com/viewvc/trunk/essentials/pyx-parent/pom.xml?revision=7399&view=markup

But I think there is a cleaner better way to add sources to jar files created by maven without coping the .java and .gwt.xml files.

The idea is during  "package"  phase add sources to jar file already created by 'maven-jar-plugin'

Here is plugin sources that we are using for this.
https://pyx4j.com/svn/pyx4j/pyx4j-gwt/maven-gwt-plugin/src/main/java/com/pyx4j/maven/plugin/gwt/JavaSourceJarMojo.java

The Mojo description here:  http://pyx4j.com/snapshot/pyx4j/pyx4j-gwt/maven-gwt-plugin/source-jar-mojo.html

Do you think  there is a value in having additional mojo in codehaus-mojo-gwt-maven-plugin that would do something like this?

Vlad

nicolas de loof

unread,
Nov 7, 2010, 4:28:35 AM11/7/10
to codehaus-mojo-gwt-...@googlegroups.com
can you please package this as a SVN patch and attach to Jira ?

2010/11/6 Vlad Skarzhevskyy <skarzh...@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.

Reply all
Reply to author
Forward
0 new messages