i think you have not included the .xml file the jar or war project
use tag < include>*.xml </include> in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: <build> <plugins> <plugin> <groupId>com.totsp.gwt.maven</groupId> <artifactId>maven-googlewebtoolkit2-plugin</artifactId> <configuration> <googleWebToolkitOutputDirectory>${basedir}/target/webapp</googleWebToolkitOutputDirectory> <googleWebToolkitCompileTarget>com.mycompany.myapp.customer.Hello </googleWebToolkitCompileTarget> <googleWebToolkitHome>C:\gwt</googleWebToolkitHome> <sourceDirectories> <param>${basedir}/src/main/java/</param> </sourceDirectories> </configuration> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev-windows</artifactId> <version>1.3</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>1.3</version> </dependency> </dependencies> </plugin> </plugins> </build> I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="src" path="src/main/resources"/> <classpathentry kind="src" path="src/test/java" output="target/test-classes"/> <classpathentry kind="output" path="target/classes"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> </classpath> When I try to run it as gwt project it cannot find "com.mycompany.myapp.customer.Hello.gwt.xml". I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]